User info DirectAccess™

This commit is contained in:
2025-03-29 15:21:30 +08:00
parent 1ea5aea6b3
commit f113ae6cba
3 changed files with 42 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
package cachekit
import "fmt"
// Those constants are used to directly get the cached data from redis
// Formatted like {prefix}#{key}
const (
DAUserInfoPrefix = "userinfo"
)
func FKey(prefix string, key any) string {
return fmt.Sprintf("%s#%v", prefix, key)
}