kvbitcask

package module
v0.0.0-...-954e36a Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitcaskStore

type BitcaskStore[K, V kv.Bytes] struct {
	DB bitcask.DB
}

func New

func New[K, V kv.Bytes](path string, options ...bitcask.Option) (*BitcaskStore[K, V], error)

func (*BitcaskStore[K, V]) Close

func (s *BitcaskStore[K, V]) Close(ctx context.Context) error

func (*BitcaskStore[K, V]) Delete

func (s *BitcaskStore[K, V]) Delete(ctx context.Context, k K) error

func (*BitcaskStore[K, V]) Edit

func (s *BitcaskStore[K, V]) Edit(ctx context.Context, k K, edit kv.Edit[V]) error

func (*BitcaskStore[K, V]) Get

func (s *BitcaskStore[K, V]) Get(ctx context.Context, k K) (V, error)

Get implements kv.Store.

func (*BitcaskStore[K, V]) Range

func (s *BitcaskStore[K, V]) Range(ctx context.Context, iter kv.Iter[K, V]) error

func (*BitcaskStore[K, V]) RangeWithPrefix

func (s *BitcaskStore[K, V]) RangeWithPrefix(ctx context.Context, k K, iter kv.Iter[K, V]) error

RangeWithPrefix implements kv.Store.

func (*BitcaskStore[K, V]) Set

func (s *BitcaskStore[K, V]) Set(ctx context.Context, k K, v V) error

Set implements kv.Store.

Jump to

Keyboard shortcuts

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