Documentation
¶
Overview ¶
Package rdb is the shared Redis connector: it parses a REDIS_URL into a go-redis client. Shipped into <project>/common/go/rdb on `maestro init` so any service that needs Redis (rate limiting, caching, locks) reaches for the same one-liner.
Open is intentionally lazy — it does NOT ping at construction. go-redis dials on first use, so a Redis blip at startup can't stop a service booting; callers that want the limiter/cache to degrade gracefully (the api-gateway does) rely on that. A service that genuinely cannot run without Redis should Ping the returned client itself and fail fast.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.