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.

reward_redis_key.go 492 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
12345678910111213141516171819
  1. package redis_key
  2. import (
  3. "fmt"
  4. )
  5. const REWARD_REDIS_PREFIX = "reward"
  6. func RewardOperateLock(requestId string, sourceType string, operateType string) string {
  7. return KeyJoin(REWARD_REDIS_PREFIX, requestId, sourceType, operateType, "send")
  8. }
  9. func RewardOperateNotification() string {
  10. return KeyJoin(REWARD_REDIS_PREFIX, "operate", "notification")
  11. }
  12. func RewardTaskRunningLock(taskId int64) string {
  13. return KeyJoin(REWARD_REDIS_PREFIX, "periodic_task", fmt.Sprint(taskId), "lock")
  14. }