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

12345678910111213141516
  1. package redis_key
  2. import (
  3. "code.gitea.io/gitea/models"
  4. "fmt"
  5. )
  6. const TASK_REDIS_PREFIX = "task"
  7. func TaskAccomplishLock(userId int64, sourceId string, taskType models.TaskType) string {
  8. return KeyJoin(TASK_REDIS_PREFIX, fmt.Sprint(userId), sourceId, taskType.String(), "accomplish")
  9. }
  10. func TaskConfig(taskType models.TaskType) string {
  11. return KeyJoin(TASK_REDIS_PREFIX, "config", taskType.String())
  12. }