Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CockroachDBBackend ¶ added in v0.2.0
CockroachDBBackend starts a shared single-node CockroachDB container (once per test binary) and returns the admin connection string and host:port backend address.
func PostgresBackend ¶
PostgresBackend starts a shared PostgreSQL 16-alpine container (once per test binary) and returns the admin connection string and host:port backend address.
func RedisClient ¶
RedisClient starts a shared Redis 7-alpine container (once per test binary) and returns a connected client. The client is closed when the test finishes.
func RedisClientRaw ¶
RedisClientRaw returns the shared Redis client without flushing. Use this when you need to manipulate Redis state mid-test without losing data set by prior operations in the same test.
func RedisClusterClient ¶ added in v0.6.0
RedisClusterClient starts a single-node Redis in cluster mode (once per test binary) and returns a connected client. The server enforces cluster hash slot semantics, so multi-key Lua scripts operating across different slots will fail with CROSSSLOT errors — exactly like a production Redis Cluster would.
Types ¶
This section is empty.