Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct holds connection to redis
func NewClient ¶
func NewClient(opts *ClientOptions) *Client
NewClient method will return a pointer to new client object
type ClientOptions ¶
type ClientOptions struct {
Host string
Port string
Password string
MaxRetries int
MinRetryBackOff time.Duration
MaxRetryBackOff time.Duration
WriteTimeout time.Duration
DB int
PoolSize int
}
ClientOptions struct contains the options for connecting to redis
type Clientv2 ¶
type Clientv2 struct {
// contains filtered or unexported fields
}
Clientv2 struct holds pool connection to redis using radix dep
func NewV2Client ¶
func NewV2Client(opts *ClientOptions) *Clientv2
NewV2Client will return the pool connection to radix object
func (*Clientv2) HIncrByFloat ¶
HIncrByFloat will increment a hash map key
Click to show internal directories.
Click to hide internal directories.