Documentation ¶
Overview ¶
nolint
Index ¶
- Variables
- func Bool(reply interface{}, err error) (bool, error)
- func ByteSlices(reply interface{}, err error) ([][]byte, error)
- func Bytes(reply interface{}, err error) ([]byte, error)
- func Float64(reply interface{}, err error) (float64, error)
- func Int(reply interface{}, err error) (int, error)
- func Int64(reply interface{}, err error) (int64, error)
- func Int64Map(result interface{}, err error) (map[string]int64, error)
- func IntMap(result interface{}, err error) (map[string]int, error)
- func Ints(reply interface{}, err error) ([]int, error)
- func NewRedisPool(server, password string) error
- func NewRedisPoolWithNoAuth(server string) error
- func String(reply interface{}, err error) (string, error)
- func StringMap(result interface{}, err error) (map[string]string, error)
- func Strings(reply interface{}, err error) ([]string, error)
- func Uint64(reply interface{}, err error) (uint64, error)
- func Values(reply interface{}, err error) ([]interface{}, error)
- type DefaultRedisConn
- func (d *DefaultRedisConn) Do(commandName string, args ...interface{}) (reply interface{}, err error)
- func (d *DefaultRedisConn) Flush() error
- func (d *DefaultRedisConn) Receive() (reply interface{}, err error)
- func (d *DefaultRedisConn) Send(commandName string, args ...interface{}) error
- func (d *DefaultRedisConn) WithLog() RedisConn
- type RedisConn
- type RedisPool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNil = redis.ErrNil
ErrNil redis空值
Functions ¶
func ByteSlices ¶
ByteSlices 字节流slice类型
func NewRedisPool ¶
NewRedisPool connect redis,if test ping failed,return error
func NewRedisPoolWithNoAuth ¶
NewRedisPoolWithNoAuth connect redis with no auth, if test ping failed,return error
Types ¶
type DefaultRedisConn ¶
DefaultRedisConn 默认redis连接信息
func (*DefaultRedisConn) Do ¶
func (d *DefaultRedisConn) Do(commandName string, args ...interface{}) (reply interface{}, err error)
Do The Do method combines the functionality of the Send, Flush and Receive methods.
func (*DefaultRedisConn) Flush ¶
func (d *DefaultRedisConn) Flush() error
Flush flushes the output buffer to the Redis server.
func (*DefaultRedisConn) Receive ¶
func (d *DefaultRedisConn) Receive() (reply interface{}, err error)
Receive receives a single reply from the Redis server
func (*DefaultRedisConn) Send ¶
func (d *DefaultRedisConn) Send(commandName string, args ...interface{}) error
Send writes the command to the client's output buffer.
Click to show internal directories.
Click to hide internal directories.