Documentation ¶
Index ¶
- type Gredis
- func (r *Gredis) Decrease(ctx context.Context, key string) error
- func (r *Gredis) Del(ctx context.Context, key string) error
- func (r *Gredis) Expire(ctx context.Context, key string, dur time.Duration) error
- func (r *Gredis) Get(ctx context.Context, key string) (*gvar.Var, error)
- func (r *Gredis) GetClient() *gredis.Redis
- func (r *Gredis) HashDel(ctx context.Context, hk, key string) error
- func (r *Gredis) HashGet(ctx context.Context, hk, key string) (*gvar.Var, error)
- func (r *Gredis) HashGetAll(ctx context.Context, key string) (*gvar.Var, error)
- func (r *Gredis) HashLen(ctx context.Context, key string) (int64, error)
- func (r *Gredis) HashSet(ctx context.Context, key string, fields map[string]interface{}) (int64, error)
- func (r *Gredis) Increase(ctx context.Context, key string) error
- func (r *Gredis) Set(ctx context.Context, key string, val interface{}, expire int) error
- func (*Gredis) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gredis ¶
type Gredis struct {
// contains filtered or unexported fields
}
Gredis cache implement
func (*Gredis) HashGetAll ¶ added in v2.0.32
Click to show internal directories.
Click to hide internal directories.