Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2022 Changes in this version + type Memory struct + func NewMemory() *Memory + func (*Memory) String() string + func (m *Memory) Decrease(_ context.Context, key string) error + func (m *Memory) Del(_ context.Context, key string) error + func (m *Memory) Expire(_ context.Context, key string, dur time.Duration) error + func (m *Memory) Get(_ context.Context, key string) (string, error) + func (m *Memory) HashDel(_ context.Context, hk, key string) error + func (m *Memory) HashGet(_ context.Context, hk, key string) (string, error) + func (m *Memory) Increase(_ context.Context, key string) error + func (m *Memory) Set(_ context.Context, 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(ctx context.Context, client *redis.Client, options *redis.Options) (*Redis, error) + func (*Redis) String() string + func (r *Redis) Decrease(ctx context.Context, key string) 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) (string, 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) (string, error) + func (r *Redis) Increase(ctx context.Context, key string) error + func (r *Redis) Set(ctx context.Context, key string, val interface{}, expire int) error