localdb

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDB

type FileDB[T any] struct {
	// contains filtered or unexported fields
}

func NewFileDB

func NewFileDB[T any](filePath string) (*FileDB[T], error)

func (*FileDB[T]) BatchSet

func (db *FileDB[T]) BatchSet(pairs []types.KeyValue[T]) (int, error)

func (*FileDB[T]) Get

func (db *FileDB[T]) Get(key string) (T, bool)

func (*FileDB[T]) GetAll

func (db *FileDB[T]) GetAll() []types.KeyValue[T]

func (*FileDB[T]) ScanGet

func (db *FileDB[T]) ScanGet(key string) (types.KeyValue[T], bool)

func (*FileDB[T]) Set

func (db *FileDB[T]) Set(key string, value T) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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