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
- type Memory
- func (m *Memory) Decrease(ctx context.Context, key string) error
- func (m *Memory) Del(ctx context.Context, key string) error
- func (m *Memory) Expire(ctx context.Context, key string, dur time.Duration) error
- func (m *Memory) Get(ctx context.Context, key string) (*gvar.Var, error)
- func (m *Memory) HashDel(ctx context.Context, hk, key string) error
- func (m *Memory) HashGet(ctx context.Context, hk, key string) (*gvar.Var, error)
- func (m *Memory) Increase(ctx context.Context, key string) error
- func (m *Memory) Set(ctx context.Context, key string, val interface{}, expire int) error
- func (*Memory) String() string
- type Message
- func (m *Message) GetID() string
- func (m *Message) GetPrefix() (prefix string)
- func (m *Message) GetStream() string
- func (m *Message) GetValues() map[string]interface{}
- func (m *Message) SetID(id string)
- func (m *Message) SetPrefix(prefix string)
- func (m *Message) SetStream(stream string)
- func (m *Message) SetValues(values map[string]interface{})
- type Redis
- func (r *Redis) Decrease(key string) error
- func (r *Redis) Del(key string) error
- func (r *Redis) Expire(key string, dur time.Duration) error
- func (r *Redis) Get(key string) (string, error)
- func (r *Redis) GetClient() *redis.Client
- func (r *Redis) HashDel(hk, key string) error
- func (r *Redis) HashGet(hk, key string) (string, error)
- func (r *Redis) Increase(key string) error
- func (r *Redis) Set(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 Gredis ¶
type Gredis struct {
// contains filtered or unexported fields
}
Gredis cache implement
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.