def METHOD_NAME(username, registry):
    """Given a username, return the cache key for this account."""
    settings = registry.settings
    hmac_secret = settings["userid_hmac_secret"]
    cache_key = utils.hmac_digest(hmac_secret, ACCOUNT_CACHE_KEY.format(username))
    return cache_key