package
0.0.0-20230510093534-25a7e6aa1f30
Repository: https://github.com/gridironone/gridmint.git
Documentation: pkg.go.dev
# Functions
New returns new, default store.
NewDefaultInMemoryKVStore builds KVStore that works in-memory (without accessing disk).
NewDefaultKVStore creates instance of default key-value store.
NewPrefixKV creates new PrefixKV on top of other KVStore.
# Variables
ErrKeyNotFound is returned if key is not found in KVStore.
# Structs
BadgerBatch encapsulates badger transaction.
BadgerIterator encapsulates prefix iterator for badger kv store.
BadgerKV is a implementation of KVStore using Badger v3.
DefaultStore is a default store implmementation.
PrefixKV is a key-value store that prepends all keys with given prefix.
PrefixKVBatch enables batching of operations on PrefixKV.