✨ User info DirectAccess™
This commit is contained in:
13
pkg/nex/cachekit/direct_const.go
Normal file
13
pkg/nex/cachekit/direct_const.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user