Documentation
¶
Index ¶
- func CacheKey(key string, params ...any) string
- func NewRedis(network string, addrs string, db int) (*redis.Client, func())
- func NewRedisCluster(addrs []string) (*redis.ClusterClient, func())
- func NewRedisParseUrl(url string) (*redis.Client, func())
- func NewRedisRing(addrs map[string]string, db int) (*redis.Ring, func())
- type RedisCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisCluster ¶
func NewRedisCluster(addrs []string) (*redis.ClusterClient, func())
func NewRedisParseUrl ¶
Types ¶
type RedisCache ¶
type RedisCache[T any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.