embedded

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package embedded runs a small in-process Redis-compatible server so an application that has no Redis of its own can still use every feature of the shared packages that are written against Redis (sign-in tokens, rate limits, idempotency, queues). The features run their normal code paths against it.

It is opt-in and meant for single-process deployments. Everything it holds lives in memory and is lost when the process exits, and it cannot be shared between processes. Applications that run a real Redis must not use it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(prefix string) (redis.Options, func(), error)

Start launches the server on a random loopback port, protected by a random password, and returns redis options that point the shared client at it plus a stop function. Key expiry is driven by a clock that advances in real time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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