Help us shape the future of Go! Take the 2026 Go Developer Survey

memorykv

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Package memorykv provides an in-memory implementation of kv.Store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryStore added in v0.8.0

type BinaryStore struct {
	// contains filtered or unexported fields
}

BinaryStore is an implementation of [keyspace.BinaryStore] that stores records in memory.

func (*BinaryStore) Open added in v0.8.0

func (s *BinaryStore) Open(ctx context.Context, name string) (kv.BinaryKeyspace, error)

Open returns the keyspace with the given name.

func (*BinaryStore) Provision added in v0.17.0

func (s *BinaryStore) Provision(ctx context.Context) error

Provision is a no-op; memory stores do not require provisioning.

type Store

type Store[K comparable, V any] struct {
	// contains filtered or unexported fields
}

Store is an in-memory implementation of kv.Store.

func (*Store[K, V]) Open

func (s *Store[K, V]) Open(ctx context.Context, name string) (kv.Keyspace[K, V], error)

Open returns the keyspace with the given name.

func (*Store[K, V]) Provision added in v0.17.0

func (s *Store[K, V]) Provision(ctx context.Context) error

Provision is a no-op; memory stores do not require provisioning.

Jump to

Keyboard shortcuts

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