This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Nexus/pkg/nex/cachekit/direct_const.go
2025-03-29 15:21:30 +08:00

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