redis

package
v0.0.0-...-6dd300b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPool

func NewPool(address string) *redis.Pool

NewPool returns a new redis pool with the standard configuration

func NewReadinessCheck

func NewReadinessCheck(pool *redis.Pool) http.HandlerFunc

NewReadinessCheck creates a http rediness check that tests that a connection to Redis can be made

func WaitForConnection

func WaitForConnection(pool *redis.Pool) error

WaitForConnection pings redis with an exponential backoff, to wait until we are connected to redis.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL