Documentation
¶
Index ¶
Constants ¶
View Source
const REDIS_ADDRESS = "localhost:6379"
Variables ¶
This section is empty.
Functions ¶
func FlushRedisForTest ¶
func FlushRedisForTest(t *testing.T, client redis.UniversalClient)
FlushRedisForTest safely flushes a Redis database for testing This should only be used when you need to completely reset the test database
func NewRedisForTest ¶
func NewRedisForTest(t *testing.T) (redis.UniversalClient, string)
NewRedisForTest creates a Redis client configured for testing with proper cleanup. It automatically generates a unique key prefix based on the test name to avoid conflicts. All keys created with this prefix are cleaned up after the test.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.