redis

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package redis implements the redis test utils.

Index

Constants

This section is empty.

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