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.

cloudbrain_redis_key.go 387 B

12345678910111213
  1. package redis_key
  2. import "fmt"
  3. const CLOUDBRAIN_PREFIX = "cloudbrain"
  4. func CloudbrainBindingJobNameKey(repoId string, jobType string, jobName string) string {
  5. return KeyJoin(CLOUDBRAIN_PREFIX, repoId, jobType, jobName, "redis_key")
  6. }
  7. func CloudbrainUniquenessKey(userId int64, jobType string) string {
  8. return KeyJoin(CLOUDBRAIN_PREFIX, fmt.Sprint(userId), jobType, "uniqueness")
  9. }