Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(cfg *config.RedisConfig, dialFunc func() (redis.Conn, error))
Configure redis-connection
func DefaultDialFunc ¶
func DefaultDialFunc(cfg *config.RedisConfig) func() (redis.Conn, error)
DefaultDialFunc should always used. Only exception is for unit-tests.
Types ¶
type WatchKeyStatus ¶
type WatchKeyStatus int
WatchKeyStatus is used to tell how WatchKey returned
const ( // WatchKeyStatusTimeout is returned when the watch timeout provided by the caller was exceeded WatchKeyStatusTimeout WatchKeyStatus = iota // WatchKeyStatusAlreadyChanged is returned when the value passed by the caller was never observed WatchKeyStatusAlreadyChanged // WatchKeyStatusSeenChange is returned when we have seen the value passed by the caller get changed WatchKeyStatusSeenChange // WatchKeyStatusNoChange is returned when the function had to return before observing a change. // Also returned on errors. WatchKeyStatusNoChange )
Click to show internal directories.
Click to hide internal directories.