Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNil when key does not exist. ErrNil = redisv8.Nil )
Functions ¶
Types ¶
type Option ¶
type Option func(o *Options)
func WithAddress ¶
func WithCustomized ¶
func WithCustomized() Option
WithCustomized will use your own configurations. To be reminder that you should make sure the values of Address, DB, Auth, Port have been assigned correctly.
func WithMaxRetries ¶
type Options ¶
type Options struct { Address string `json:"address"` DB int `json:"db"` Username string `json:"username"` Password string `json:"password"` Port int `json:"port"` Network string `json:"network"` // Maximum number of retries before giving up. // Default is 3 retries; -1 (not 0) disables retries. MaxRetries int `json:"max_retries"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.