package cn.stylefeng.roses.kernel.auth.cache; import cn.hutool.cache.impl.TimedCache; import cn.stylefeng.roses.kernel.auth.api.constants.LoginCacheConstants; import cn.stylefeng.roses.kernel.cache.memory.AbstractMemoryCacheOperator; /** * 记录用户登录失败次数的缓存 *

* key是用户账号,value是登录失败错误次数 * * @author fengshuonan * @date 2022/3/15 17:09 */ public class LoginErrorCountMemoryCache extends AbstractMemoryCacheOperator { public LoginErrorCountMemoryCache(TimedCache timedCache) { super(timedCache); } @Override public String getCommonKeyPrefix() { return LoginCacheConstants.LOGIN_ERROR_CACHE_PREFIX; } }