kvstorage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 13 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MinKeysCount = 100
)

Functions

func Register

func Register(stype string, f newStorageFunc)

Types

type KVStorage

type KVStorage interface {
	Has(key string) bool
	ReadLSN(key string) (dbtypes.LSN, error)
	WriteLSN(key string, lsn dbtypes.LSN) error
	ReadUint(key string) (uint64, error)
	WriteUint(key string, val uint64) error
	Keys() []string
	Erase(key string) error
	Close() error
}

func New

func New(stype string, location string) (storage KVStorage, err error)

Jump to

Keyboard shortcuts

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