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 ¶ added in v0.0.44
func WithCustomized ¶ added in v0.0.44
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 ¶ added in v0.0.44
type Options ¶ added in v0.0.44
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.