...
|
...
|
@@ -44,9 +44,6 @@ public class CacheService { |
|
|
return RedisKeyBuilder.newInstance().appendFixed(CacheKeyEnum.AUTHORIZE_INFO_KEY.getCacheKey()).appendVar(uid);
|
|
|
}
|
|
|
|
|
|
public static RedisKeyBuilder getAuthorizeFailedNumRedisKeyBuilder(Integer uid){
|
|
|
return RedisKeyBuilder.newInstance().appendFixed(CacheKeyEnum.AUTHORIZE_FAILED_KEY.getCacheKey()).appendVar(uid);
|
|
|
}
|
|
|
|
|
|
public static RedisKeyBuilder getZhiMaCertRedisKeyBuilder(Integer uid){
|
|
|
return RedisKeyBuilder.newInstance().appendFixed(CacheKeyEnum.ZHI_MA_CERT_KEY.getCacheKey()).appendVar(uid);
|
...
|
...
|
@@ -183,10 +180,6 @@ public class CacheService { |
|
|
set(getAuthorizeInfoRedisKeyBuilder(authorizeInfo.getUid()),authorizeInfo,CacheKeyEnum.AUTHORIZE_INFO_KEY.getDefaultExpireTime(),CacheKeyEnum.AUTHORIZE_INFO_KEY.getTimeUnit());
|
|
|
}
|
|
|
|
|
|
public long incrementAuthorizeFailNum(int uid){
|
|
|
return incrementWithExpire(getAuthorizeFailedNumRedisKeyBuilder(uid),1,CacheKeyEnum.AUTHORIZE_FAILED_KEY.getDefaultExpireTime(), CacheKeyEnum.AUTHORIZE_FAILED_KEY.getTimeUnit());
|
|
|
}
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
* 芝麻认证相关
|
...
|
...
|
|