Documentation
¶
Overview ¶
Package redis builds the cache client.
The cache is strictly optional. Redis runs with no persistence and an LRU eviction policy, so any key may vanish at any moment; nothing correctness-critical may be stored here. Every call site must treat a Redis error as a cache miss and fall through to Postgres, and readiness reports a Redis outage as degraded rather than unready — failing readiness would take a working site out of rotation over a cache problem.
Index ¶
Constants ¶
View Source
const PingTimeout = 750 * time.Millisecond
PingTimeout is the budget for a readiness probe's cache check.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.