This commit is contained in:
77
2024-03-18 20:42:53 +08:00
parent a75e7b3257
commit 79927fb17d
8 changed files with 167 additions and 10 deletions

View File

@@ -14,11 +14,16 @@ public class LockKey {
public static final String LOCK_VIDEO_SETTLE_REDIS = RedisHttpConstant.REDIS_P + "lock:videoSettle:%s";
public static final String LOCK_ONLINE_LOGIN_NOTICE_REDIS = RedisHttpConstant.REDIS_P + "lockHand:loginFansNotice:%s";
public static final String LOCK_USER_INFO_AUDIT_REDIS = RedisHttpConstant.REDIS_P + "lock:userInfoAudit:%s";
public static final String LOCK_USER_VISITOR_ADD_REDIS = RedisHttpConstant.REDIS_P + "lock:userVisitorAdd:%s-%s";
public static String getRegisterLockKey(String mobile){
return String.format(LOCK_REGISTER_REDIS,mobile);
}
public static String getUserVisitorAddLockKey(Long userId,Long tarUserId){
return String.format(LOCK_USER_VISITOR_ADD_REDIS,userId,tarUserId);
}
public static String getDealInviteLockKey(Long userId){
return String.format(LOCK_DEAL_INVITE_REDIS,userId);
}