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) 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
Click to show internal directories.
Click to hide internal directories.