def METHOD_NAME(username, registry):
    """Given a username, get the account from the cache."""
    cache_key = get_account_cache_key(username, registry)
    cache = registry.cache
    cached_account = cache.get(cache_key)
    return cached_account