Documentation ¶
Index ¶
- Variables
- func Del(key string) error
- func Exists(key string) (exists bool, err error)
- func Expire(key string, expiration time.Duration) error
- func Get(key string) (string, error)
- func Set(key string, value any, expiration time.Duration) error
- func SetObject(key string, value any, expiration time.Duration) error
- type ConfigRedis
Constants ¶
This section is empty.
Variables ¶
View Source
var RedisClient *redis.Client
Functions ¶
Types ¶
type ConfigRedis ¶
type ConfigRedis struct { Addr string Password string // default 0 DB int // ping immediately after init client to make sure client is able to use // 0 means no ping // due to https://github.com/redis/go-redis/issues/3080 PingTimeout time.Duration }
func (*ConfigRedis) Check ¶
func (c *ConfigRedis) Check()
func (*ConfigRedis) Close ¶
func (c *ConfigRedis) Close()
func (*ConfigRedis) Init ¶
func (c *ConfigRedis) Init()
Click to show internal directories.
Click to hide internal directories.