Documentation ¶
Index ¶
- type Redis
- func (r *Redis) Decrease(ctx context.Context, key string) (int64, error)
- func (r *Redis) Del(ctx context.Context, key string) error
- func (r *Redis) Expire(ctx context.Context, key string, dur time.Duration) error
- func (r *Redis) Get(ctx context.Context, key string) (*gvar.Var, error)
- func (r *Redis) GetClient() *redis.Client
- func (r *Redis) HashDel(ctx context.Context, hk, key string) error
- func (r *Redis) HashGet(ctx context.Context, hk, key string) (*gvar.Var, error)
- func (r *Redis) HashGetAll(ctx context.Context, key string) (*gvar.Var, error)
- func (r *Redis) HashLen(ctx context.Context, key string) (int64, error)
- func (r *Redis) HashMGet(ctx context.Context, key string, fields ...string) (gvar.Vars, error)
- func (r *Redis) HashMSet(ctx context.Context, key string, fields map[string]interface{}) error
- func (r *Redis) HashSet(ctx context.Context, key string, fields map[string]interface{}) (int64, error)
- func (r *Redis) HashVals(ctx context.Context, key string) (gvar.Vars, error)
- func (r *Redis) Increase(ctx context.Context, key string) (int64, error)
- func (r *Redis) ListLPush(ctx context.Context, key string, values ...interface{}) (int64, error)
- func (r *Redis) ListRPop(ctx context.Context, key string, count ...int) (*gvar.Var, error)
- func (r *Redis) ListRange(ctx context.Context, key string, start, stop int64) (gvar.Vars, error)
- func (r *Redis) Set(ctx context.Context, key string, val interface{}, expire int) error
- func (*Redis) String() string
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 cache implement
func (*Redis) HashGetAll ¶ added in v2.0.32
Click to show internal directories.
Click to hide internal directories.