cache_key.go 278 B

1234567891011121314
  1. package constant
  2. // Cache keys
  3. const (
  4. UserGroupKeyFmt = "user_group:%d"
  5. UserQuotaKeyFmt = "user_quota:%d"
  6. UserEnabledKeyFmt = "user_enabled:%d"
  7. UserUsernameKeyFmt = "user_name:%d"
  8. )
  9. const (
  10. TokenFiledRemainQuota = "RemainQuota"
  11. TokenFieldGroup = "Group"
  12. )