Documentation ¶
Index ¶
- type Redis
- func (r *Redis) Delete(key string) error
- func (r *Redis) Get(key string, reply interface{}) error
- func (r *Redis) GetContext(ctx context.Context, key string) interface{}
- func (r *Redis) IsExist(key string) bool
- func (r *Redis) Set(key string, val interface{}, timeout time.Duration) (err error)
- func (r *Redis) SetConn(conn redis.UniversalClient)
- func (r *Redis) SetContext(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis redis cache
func (*Redis) GetContext ¶ added in v0.1.21
GetContext 获取一个值
func (*Redis) SetContext ¶ added in v0.1.21
SetContext 设置redis ctx 参数
Click to show internal directories.
Click to hide internal directories.