<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _key(self, username, frozen=False):
 """Translate a username into a key for Redis."""

        if frozen:
            return self.frozen + username
        return self.prefix + username