redis

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL