Documentation
¶
Overview ¶
Package redis provides opt-in, non-destructive Redis acceptance helpers. Callers scope their keys to their own namespace; no helper flushes or deletes shared data.
Index ¶
Constants ¶
View Source
const ( AddressVariable = "FOUNDRY_TEST_REDIS_ADDR" RequiredVariable = "FOUNDRY_TEST_REDIS_REQUIRED" UserVariable = "FOUNDRY_TEST_REDIS_USER" PasswordVariable = "FOUNDRY_TEST_REDIS_PASSWORD" )
Variables ¶
This section is empty.
Functions ¶
func Config ¶
Config reads the explicitly opted-in plaintext endpoint (host:port) over the default client limits, plus the optional UserVariable and PasswordVariable credentials. Each is read independently: a password alone authenticates Redis's default user. The password is kept in a secret-bearing field and is never logged. Ordinary test runs skip without the address; the required acceptance command fails if it is missing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.