rediscleanup

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package rediscleanup owns scoped Redis test cleanup without importing Redis runtime assembly.

Index

Constants

View Source
const KeepKeysVariable = "FOUNDRY_TEST_KEEP_REDIS_KEYS"

Variables

This section is empty.

Functions

func Prefixes

func Prefixes(namespace keyspace.Namespace, features ...keyspace.Feature) ([]string, error)

Prefixes validates exact namespace and feature components before constructing patterns.

func Register

func Register(t testing.TB, newClient func() *driver.Client, prefixes []string) func(string)

Register snapshots exact prefixes and registers cleanup before clients or apps start. newClient runs only during cleanup of a passing test that has not opted to retain keys. The returned tracker adds exact prefixes of further test-owned physical addresses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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