Nexus/pkg/nex/cachekit/direct_const.go
2025-03-30 14:31:16 +08:00

16 lines
313 B
Go

package cachekit
import "fmt"
// Those constants are used to directly get the cached data from redis
// Formatted like {prefix}#{key}
const (
DAAttachment = "attachment"
DAUser = "account"
DARealm = "realm"
)
func FKey(prefix string, key any) string {
return fmt.Sprintf("%s#%v", prefix, key)
}