Versions in this module Expand all Collapse all v1 v1.0.2 Dec 6, 2021 Changes in this version + type Memory struct + func NewMemory() *Memory + func (*Memory) String() string + func (m *Memory) Decrease(key string) error + func (m *Memory) Del(key string) error + func (m *Memory) Expire(key string, dur time.Duration) error + func (m *Memory) Get(key string) (string, error) + func (m *Memory) HashDel(hk, key string) error + func (m *Memory) HashGet(hk, key string) (string, error) + func (m *Memory) Increase(key string) error + func (m *Memory) Set(key string, val interface{}, expire int) error + type Message struct + 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 struct + func NewRedis(client *redis.Client, options *redis.Options) (*Redis, error) + func (*Redis) String() string + 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