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 291 B

3 years ago
3 years ago
1234567891011
  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 TaskConfig(taskType string) string {
  7. return KeyJoin(TASK_REDIS_PREFIX, "config", taskType)
  8. }