Documentation ¶
Index ¶
- Constants
- func HandleAddress(address, password, authType string) ([]string, error)
- type RedisClient
- func (p *RedisClient) CheckHandleNetError(err error) bool
- func (p *RedisClient) Close()
- func (p *RedisClient) Connect() error
- func (p *RedisClient) Do(commandName string, args ...interface{}) (interface{}, error)
- func (p *RedisClient) FetchBaseInfo(isCluster bool) (map[int32]int64, []string, error)
- func (p *RedisClient) FetchValueUseScan_Hash_Set_SortedSet(oneKeyInfo *common.Key, onceScanCount int) (map[string][]byte, error)
- func (p *RedisClient) PipeExistsCommand(keyInfo []*common.Key) ([]int64, error)
- func (p *RedisClient) PipeLenCommand(keyInfo []*common.Key) ([]int64, error)
- func (p *RedisClient) PipeRawCommand(commands []combine, specialErrorPrefix string) ([]interface{}, error)
- func (p *RedisClient) PipeSismemberCommand(key []byte, field [][]byte) ([]interface{}, error)
- func (p *RedisClient) PipeTTLCommand(keyInfo []*common.Key) ([]bool, error)
- func (p *RedisClient) PipeTypeCommand(keyInfo []*common.Key) ([]string, error)
- func (p *RedisClient) PipeValueCommand(keyInfo []*common.Key) ([]interface{}, error)
- func (p *RedisClient) PipeZscoreCommand(key []byte, field [][]byte) ([]interface{}, error)
- func (p RedisClient) String() string
- type RedisHost
Constants ¶
View Source
const ( AddressSplitter = "@" AddressClusterSplitter = ";" RoleMaster = "master" RoleSlave = "slave" )
Variables ¶
This section is empty.
Functions ¶
func HandleAddress ¶
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func NewRedisClient(redisHost RedisHost, db int32) (RedisClient, error)
func (*RedisClient) CheckHandleNetError ¶
func (p *RedisClient) CheckHandleNetError(err error) bool
func (*RedisClient) Close ¶
func (p *RedisClient) Close()
func (*RedisClient) Connect ¶
func (p *RedisClient) Connect() error
func (*RedisClient) Do ¶
func (p *RedisClient) Do(commandName string, args ...interface{}) (interface{}, error)
func (*RedisClient) FetchBaseInfo ¶
* Get base db info. * Return: * map[int32]int64: logical db node map. * []string: physical db nodes.
func (*RedisClient) FetchValueUseScan_Hash_Set_SortedSet ¶
func (*RedisClient) PipeExistsCommand ¶
func (p *RedisClient) PipeExistsCommand(keyInfo []*common.Key) ([]int64, error)
func (*RedisClient) PipeLenCommand ¶
func (p *RedisClient) PipeLenCommand(keyInfo []*common.Key) ([]int64, error)
func (*RedisClient) PipeRawCommand ¶
func (p *RedisClient) PipeRawCommand(commands []combine, specialErrorPrefix string) ([]interface{}, error)
func (*RedisClient) PipeSismemberCommand ¶
func (p *RedisClient) PipeSismemberCommand(key []byte, field [][]byte) ([]interface{}, error)
func (*RedisClient) PipeTTLCommand ¶
func (p *RedisClient) PipeTTLCommand(keyInfo []*common.Key) ([]bool, error)
func (*RedisClient) PipeTypeCommand ¶
func (p *RedisClient) PipeTypeCommand(keyInfo []*common.Key) ([]string, error)
func (*RedisClient) PipeValueCommand ¶
func (p *RedisClient) PipeValueCommand(keyInfo []*common.Key) ([]interface{}, error)
func (*RedisClient) PipeZscoreCommand ¶
func (p *RedisClient) PipeZscoreCommand(key []byte, field [][]byte) ([]interface{}, error)
func (RedisClient) String ¶
func (p RedisClient) String() string
Click to show internal directories.
Click to hide internal directories.