Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterClient ¶
type ClusterClient struct {
// contains filtered or unexported fields
}
func NewClusterClient ¶
func NewClusterClient(dbName string, addrs []string, option *Option) (*ClusterClient, error)
func (*ClusterClient) Do ¶
func (this *ClusterClient) Do(commandName string, args ...interface{}) (reply interface{}, err error)
type Option ¶
type Option struct { Type RedisType Password string DBIndex int PoolMaxIdle int PoolMaxActive int PoolWait bool PoolIdleTimeout time.Duration }
func NewDefaultOption ¶
func NewDefaultOption() *Option
type SentinelClient ¶
type SentinelClient struct {
// contains filtered or unexported fields
}
func NewSentinelClient ¶
func NewSentinelClient(masterName string, addrs []string, option *Option) *SentinelClient
func (*SentinelClient) Do ¶
func (this *SentinelClient) Do(commandName string, args ...interface{}) (reply interface{}, err error)
type StandaloneClient ¶
type StandaloneClient struct {
// contains filtered or unexported fields
}
func NewStandaloneClient ¶
func NewStandaloneClient(dbName string, addr string, option *Option) *StandaloneClient
func (*StandaloneClient) Do ¶
func (this *StandaloneClient) Do(commandName string, args ...interface{}) (reply interface{}, err error)
Click to show internal directories.
Click to hide internal directories.