flatkv

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagEnable = "enable-flat-kv"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store wraps app_flat_kv.db for read performance.

func NewStore

func NewStore(db dbm.DB) *Store

func (*Store) Commit

func (st *Store) Commit(version int64)

func (*Store) Delete

func (st *Store) Delete(key []byte)

func (*Store) Enable

func (st *Store) Enable() bool

func (*Store) Get

func (st *Store) Get(key []byte) []byte

func (*Store) GetDBReadCount

func (st *Store) GetDBReadCount() int

func (*Store) GetDBReadTime

func (st *Store) GetDBReadTime() int

func (*Store) GetDBWriteCount

func (st *Store) GetDBWriteCount() int

func (*Store) GetDBWriteTime

func (st *Store) GetDBWriteTime() int

func (*Store) GetLatestVersion

func (st *Store) GetLatestVersion() int64

func (*Store) Has

func (st *Store) Has(key []byte) bool

func (*Store) ResetCount

func (st *Store) ResetCount()

func (*Store) Set

func (st *Store) Set(key, value []byte)

Jump to

Keyboard shortcuts

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