Versions in this module Expand all Collapse all v1 v1.0.0 Apr 20, 2021 Changes in this version + var ErrNoConnection = errors.New("redisop: no connection") + var ErrNoSubscribe = errors.New("redisop: no subscribe") + func SetLogger(info Logger) + type DefaultLogger struct + Level int + func NewDefaultLogger(level string) *DefaultLogger + func (l DefaultLogger) Debug(format string, v ...interface{}) + func (l DefaultLogger) Info(format string, v ...interface{}) + func (l DefaultLogger) Warning(format string, v ...interface{}) + type Logger interface + Debug func(format string, v ...interface{}) + Info func(format string, v ...interface{}) + Warning func(format string, v ...interface{}) + type PubSubHandle func(channel, kind string, data []byte) + type RedisPool struct + func (p *RedisPool) Close() (ok bool) + func (p *RedisPool) Connect(redisServer string) (ok bool) + func (p *RedisPool) GetNotifyConfig() (cfg string) + func (p *RedisPool) IsConnected() (ok bool) + func (p *RedisPool) Rdo(commandName string, args ...interface{}) (reply interface{}, err error) + func (p *RedisPool) ScanKeys(match string) (keys []string) + func (p *RedisPool) SetNotifyConfig(cfg string) (err error) + func (p *RedisPool) Subscribe(topic string, isPattern ...bool) (err error) + func (p *RedisPool) SubscribeHandle(handle PubSubHandle) (err error) + func (p *RedisPool) UnSubscribe(topic string, isPattern ...bool) (err error) + type RedisPoolX struct + func (p *RedisPoolX) Sentinel(servers, masterName string) (err error)