Documentation ¶
Index ¶
- type Config
- type Redis
- func (this *Redis) Close() error
- func (this *Redis) Decrement(key string, value ...int64) error
- func (this *Redis) Exists(key string) bool
- func (this *Redis) Expire(key string, expiration time.Duration) error
- func (this *Redis) Flush() (bool, error)
- func (this *Redis) Forever(key string, value any) error
- func (this *Redis) Forget(key string) (bool, error)
- func (this *Redis) Get(key string) (any, error)
- func (this *Redis) GetClient() *redis.Client
- func (this *Redis) HashDel(key string) error
- func (this *Redis) HashGet(key string, field string) (string, error)
- func (this *Redis) HashSet(key string, field string, value string) error
- func (this *Redis) Increment(key string, value ...int64) error
- func (this *Redis) Put(key string, value any, ttl time.Duration) 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 }
缓存配置
Click to show internal directories.
Click to hide internal directories.