Documentation ¶
Index ¶
- Constants
- type RedisConn
- func (r *RedisConn) Addresses() []string
- func (r *RedisConn) BufioReader() *bufio.Reader
- func (r *RedisConn) BufioWriter() *bufio.Writer
- func (r *RedisConn) Close() error
- func (r *RedisConn) Do(cmd string, args ...interface{}) (interface{}, error)
- func (r *RedisConn) Flush() error
- func (r *RedisConn) IterateNodes(result func(string, interface{}, error), cmd string, args ...interface{})
- func (r *RedisConn) NewBatcher() common.CmdBatcher
- func (r *RedisConn) Receive() (interface{}, error)
- func (r *RedisConn) ReceiveBool() (bool, error)
- func (r *RedisConn) ReceiveString() (string, error)
- func (r *RedisConn) RedisType() config.RedisType
- func (r *RedisConn) Send(cmd string, args ...interface{}) error
- func (r *RedisConn) SendAndFlush(cmd string, args ...interface{}) error
Constants ¶
View Source
const ( ReaderBufferSize = 512 * 1024 WriterBufferSize = 1 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisConn ¶
type RedisConn struct {
// contains filtered or unexported fields
}
func NewRedisConn ¶
func NewRedisConn(cfg config.RedisConfig) (*RedisConn, error)
func (*RedisConn) BufioReader ¶
Reader is not thread safe
func (*RedisConn) BufioWriter ¶
Writer is not thread safe
func (*RedisConn) IterateNodes ¶
func (*RedisConn) NewBatcher ¶
func (r *RedisConn) NewBatcher() common.CmdBatcher
func (*RedisConn) ReceiveBool ¶
func (*RedisConn) ReceiveString ¶
func (*RedisConn) SendAndFlush ¶
Click to show internal directories.
Click to hide internal directories.