def METHOD_NAME(cls, username):
    key_limit = cls.LIMIT_KEY_TMPL.format(username, '*')
    key_block = cls.BLOCK_KEY_TMPL.format(username)
    # Redis 尽量不要用通配
    cache.delete_pattern(key_limit)
    cache.delete(key_block)