Documentation ¶
Index ¶
- type Config
- type ConnectionConfig
- type MessageHandler
- type Redis
- func (redis *Redis) Del(pattern string) error
- func (redis *Redis) Expire(key string, duration time.Duration) error
- func (redis *Redis) Get(key string) (string, error)
- func (redis *Redis) GetConfig(config string) (string, error)
- func (redis *Redis) GetHKeys(key string) ([]string, error)
- func (redis *Redis) GetKeys(pattern string) ([]string, error)
- func (redis *Redis) HGet(key string, hkey string) (string, error)
- func (redis *Redis) HSet(key string, hkey string, value string) error
- func (redis *Redis) Persist(key string) error
- func (redis *Redis) Ping() error
- func (redis *Redis) SAdd(set string, member string) error
- func (redis *Redis) SIsMember(set string, member string) (bool, error)
- func (redis *Redis) SMembers(set string) ([]string, error)
- func (redis *Redis) SRem(set string, member string) error
- func (redis *Redis) Set(key string, value string) error
- func (redis *Redis) SetConfig(config string, value string) error
- func (redis *Redis) SubscribeEvent(pattern string, onStart func(), onMessage func(channel string, data string), ...)
- func (redis *Redis) XAdd(stream string, kv StreamItem) (string, error)
- func (redis *Redis) XRead(streamID string, lastID string) ([]StreamItem, error)
- type StreamItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionConfig ¶
type ConnectionConfig struct { MaxIdleConnections int `json:"max_idle_connections"` MaxActiveConnections int `json:"max_active_connections"` ConnectTimeout int `json:"connect_timeout"` ReadTimeout int `json:"read_timeout"` IdleKeepAlive int `json:"idle_keep_alive"` MaxKeepAlive int `json:"max_keep_alive"` WaitForConnection bool `json:"wait_for_connection"` }
type MessageHandler ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) SubscribeEvent ¶
type StreamItem ¶
Click to show internal directories.
Click to hide internal directories.