memory

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package memory provides process-local optimization storage for tests and fixtures. It cannot advertise durable recovery readiness.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option = state.Option

Option configures the process-local backend.

func WithClock

func WithClock(now func() time.Time) Option

WithClock supplies trusted timestamps for transactions and lease tests.

type Store

type Store = state.Store

Store keeps detached process-local state behind the shared storage rules.

func New

func New(options ...Option) (*Store, error)

New returns an empty, non-durable backend.

Jump to

Keyboard shortcuts

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