package redis_key import ( "code.gitea.io/gitea/models" "fmt" ) const TASK_REDIS_PREFIX = "task" func TaskAccomplishLock(userId int64, sourceId string, taskType models.TaskType) string { return KeyJoin(TASK_REDIS_PREFIX, fmt.Sprint(userId), sourceId, taskType.String(), "accomplish") } func TaskConfig(taskType models.TaskType) string { return KeyJoin(TASK_REDIS_PREFIX, "config", taskType.String()) }