|
|
@ -47,7 +47,7 @@ public class PartymemberInfoRedis { |
|
|
|
|
|
|
|
public void setUserMobileCode(String userId, String mobile, String code){ |
|
|
|
String key = RedisKeys.getUserMobileCodeKey(userId, mobile, code); |
|
|
|
redisUtils.set(key, code, RedisUtils.MINUTE_TEN_EXPIRE); |
|
|
|
redisUtils.set(key, code, RedisUtils.MINUTE_THIRTY_EXPIRE); |
|
|
|
} |
|
|
|
|
|
|
|
public String getUserMobileCode(String userId, String mobile, String code){ |
|
|
@ -60,4 +60,9 @@ public class PartymemberInfoRedis { |
|
|
|
redisUtils.delete(key); |
|
|
|
} |
|
|
|
|
|
|
|
public void deleteUserMobileCodeByPattern(String userId, String mobile){ |
|
|
|
String key = RedisKeys.getUserMobileCodeKey(userId, mobile); |
|
|
|
redisUtils.deleteByPattern(key); |
|
|
|
} |
|
|
|
|
|
|
|
} |