You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

account_redis_key.go 453 B

3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
1234567891011121314151617
  1. package redis_key
  2. import "fmt"
  3. const ACCOUNT_REDIS_PREFIX = "account"
  4. func PointAccountOperateLock(userId int64) string {
  5. return KeyJoin(ACCOUNT_REDIS_PREFIX, fmt.Sprint(userId), "point", "operate", "lock")
  6. }
  7. func PointAccountInfo(userId int64) string {
  8. return KeyJoin(ACCOUNT_REDIS_PREFIX, fmt.Sprint(userId), "info")
  9. }
  10. func PointAccountInitLock(userId int64) string {
  11. return KeyJoin(ACCOUNT_REDIS_PREFIX, fmt.Sprint(userId), "init", "lock")
  12. }