Documentation ¶
Index ¶
- type Config
- type Redis
- func (this Redis) Check(keys ...string) (bool, error)
- func (this Redis) Close() error
- func (this Redis) Delete(keys ...string) (bool, error)
- func (this Redis) Get(key string, value any) error
- func (this Redis) GetClient() *redis.Client
- func (this Redis) Set(key string, value any, expiration any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Addr string Password string DB int MinIdleConn int DialTimeout time.Duration ReadTimeout time.Duration WriteTimeout time.Duration PoolSize int PoolTimeout time.Duration EnableTrace bool KeyPrefix string Logger iLogger }
缓存配置
Click to show internal directories.
Click to hide internal directories.