Nexus/pkg/nex/cachekit/direct_const.go

14 lines
265 B
Go

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)
}