Help us shape the future of Go! Take the 2026 Go Developer Survey

keva

package module
v0.0.0-...-3701b71 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: MIT Imports: 9 Imported by: 1

README

keva

GoDoc Go Report Card Build Status

Lightweight filesystem-based key-value store with write-back caching for lots of objects.

Documentation

Index

Constants

View Source
const DefaultLockPartitions = 8
View Source
const DefaultMaxBucketsCached = 256
View Source
const DefaultMaxObjectsPerBucket = 512

Variables

View Source
var ErrValueNotFound = errors.New("value not found")

ErrValueNotFound indicates that a corresponding value was not found for a key.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(rootPath string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Destroy

func (s *Store) Destroy() error

func (*Store) Flush

func (s *Store) Flush() error

func (*Store) Get

func (s *Store) Get(key string, dest interface{}) error

func (*Store) Info

func (s *Store) Info() StoreInfo

func (*Store) Put

func (s *Store) Put(key string, value interface{}) error

func (*Store) Remove

func (s *Store) Remove(key string) error

func (*Store) SetMaxBucketsCached

func (s *Store) SetMaxBucketsCached(n int) error

func (*Store) SetMaxObjectsPerBucket

func (s *Store) SetMaxObjectsPerBucket(n int)

type StoreInfo

type StoreInfo struct {
	CacheHitCount  uint64
	CacheMissCount uint64
}

Jump to

Keyboard shortcuts

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