Documentation
¶
Overview ¶
Package redisfallback runs a store's Redis commands with an in-process fallback. A command waits at most Timeout, whatever the client's own timeouts. While Redis fails, one call tries it again after a backoff that doubles from a second to 30 seconds and the rest use the fallback; the failure and the recovery are logged once each.
Index ¶
Constants ¶
View Source
const ( // Timeout bounds what one command waits on Redis, so an outage costs a // request at most this. Timeout = 250 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.