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.

task_redis_key.go 409 B

3 years ago
2 years ago
1234567891011121314
  1. package redis_key
  2. const TASK_REDIS_PREFIX = "task"
  3. func TaskAccomplishLock(sourceId string, taskType string) string {
  4. return KeyJoin(TASK_REDIS_PREFIX, sourceId, taskType, "accomplish")
  5. }
  6. func TaskConfigList() string {
  7. return KeyJoin(TASK_REDIS_PREFIX, "config", "list")
  8. }
  9. func TaskConfigOperateLock(taskCode, rewardType string) string {
  10. return KeyJoin(TASK_REDIS_PREFIX, "config", "operate", "lock")
  11. }