cache.go 254 B

12345678910111213
  1. package store
  2. import (
  3. "fmt"
  4. )
  5. func getUserSettingCacheKey(userID int32, key string) string {
  6. return fmt.Sprintf("%d-%s", userID, key)
  7. }
  8. func getUserSettingV1CacheKey(userID int32, key string) string {
  9. return fmt.Sprintf("%d-%s-v1", userID, key)
  10. }