Authored by qinchao

去掉不用方法

... ... @@ -16,7 +16,6 @@ import java.util.concurrent.TimeUnit;
public enum CacheKeyEnum {
// user - passport -authorize
AUTHORIZE_FAILED_KEY("ufo:user:authorizeFailed:", "实名认证失败次数", 30, TimeUnit.MINUTES),
AUTHORIZE_INFO_KEY("ufo:user:authorizeInfo:","实名认证信息", 2, TimeUnit.HOURS),
ZHI_MA_CERT_KEY("ufo:user:zhiMaCert:","芝麻认证信息", 2, TimeUnit.HOURS),
... ...
... ... @@ -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());
}
/**************************************************************************
* 芝麻认证相关
... ...