Documentation ¶
Index ¶
- type Memory
- func (m *Memory) BRPop(timeout time.Duration, keys ...string) ([]string, error)
- 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) HExists(hk, key string) (bool, error)
- func (m *Memory) HIncrBy(key, field string, increment int) (int64, error)
- func (m *Memory) HashDel(hk, key string) error
- func (m *Memory) HashGet(hk, key string) (string, error)
- func (m *Memory) HashGetAll(hk string) (map[string]string, error)
- func (m *Memory) HashSet(key string, val ...interface{}) error
- func (m *Memory) Increase(key string) error
- func (m *Memory) LPush(key string, values ...interface{}) error
- func (m *Memory) RPop(key string) (string, error)
- func (m *Memory) RPush(key string, values ...interface{}) error
- func (m *Memory) ScanKey(key string) []string
- func (m *Memory) Set(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) BRPop(timeout time.Duration, keys ...string) ([]string, error)
- 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) HExists(hk, key string) (bool, error)
- func (r *Redis) HIncrBy(key, field string, increment int) (int64, error)
- func (r *Redis) HashDel(hk, key string) error
- func (r *Redis) HashGet(hk, key string) (string, error)
- func (r *Redis) HashGetAll(hk string) (map[string]string, error)
- func (r *Redis) HashSet(key string, val ...interface{}) error
- func (r *Redis) Increase(key string) error
- func (r *Redis) LPush(key string, values ...interface{}) error
- func (r *Redis) RPop(key string) (string, error)
- func (r *Redis) RPush(key string, values ...interface{}) error
- func (r *Redis) ScanKey(key string) []string
- 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 Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis cache implement
func (*Redis) HashGetAll ¶
HashGetAll from key
Click to show internal directories.
Click to hide internal directories.