Modify statusmod to a prime number to reduce hash conflicts

pull/758/head
plutoyty 2 years ago
parent f2d8981dac
commit 4cf429ced0

@ -35,7 +35,7 @@ const (
userGlobalRecvMsgOptKey = "USER_GLOBAL_RECV_MSG_OPT_KEY:" userGlobalRecvMsgOptKey = "USER_GLOBAL_RECV_MSG_OPT_KEY:"
olineStatusKey = "ONLINE_STATUS:" olineStatusKey = "ONLINE_STATUS:"
userOlineStatusExpireTime = time.Second * 60 * 60 * 24 userOlineStatusExpireTime = time.Second * 60 * 60 * 24
statusMod = 500 statusMod = 501
) )
type UserCache interface { type UserCache interface {

Loading…
Cancel
Save