kvstore

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSqliteKVStore

func NewSqliteKVStore(dbpool *sqlitex.Pool, basename string) (*sqliteKvStoreImpl, error)

Types

type KvStore

type KvStore interface {
	// Get retrieves the value for the given key.
	Get(key string) ([]byte, error)
	// Set sets the value for the given key.
	Set(key string, value []byte) error
	// ForEach iterates over all key-value pairs with the given prefix.
	ForEach(prefix string, onRow func(key string, value []byte) error) error
}

Jump to

Keyboard shortcuts

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