zdb

package module
v0.0.0-...-3ab7c86 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 13 Imported by: 0

README

ZDB

ZDB

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyNotFound = "Key not found"
	ErrNoRewrite   = "Value log GC attempt didn't result in any cleanup" //GC
)

Functions

This section is empty.

Types

type Store

type Store struct {
	Badger *badger.DB
}

func NewDB

func NewDB(path string, encryptionKey string) *Store

func (*Store) Close

func (d *Store) Close()

func (*Store) HClear

func (d *Store) HClear(name interface{}) (int, error)

func (*Store) HDel

func (d *Store) HDel(name, key interface{}) error

func (*Store) HExists

func (d *Store) HExists(name, key interface{}) (i int, err error)

func (*Store) HGet

func (d *Store) HGet(name, key interface{}) (value interface{}, err error)

func (*Store) HGetALL

func (d *Store) HGetALL(name interface{}) (g.SliceAny, error)

func (*Store) HGetTTL

func (d *Store) HGetTTL(name, key interface{}) (ttl uint64, err error)

func (*Store) HGetTo

func (d *Store) HGetTo(name, key, value interface{}) (err error)

func (*Store) HIncr

func (d *Store) HIncr(name, key interface{}, num int) (value uint64, err error)

func (*Store) HKeys

func (d *Store) HKeys(name, prefix interface{}) (keys g.SliceStr, err error)

func (*Store) HLen

func (d *Store) HLen(name, prefix interface{}) (int, error)

func (*Store) HMDel

func (d *Store) HMDel(name interface{}, keys []string) error

func (*Store) HMGet

func (d *Store) HMGet(name interface{}, keys []string) (g.SliceAny, error)

func (*Store) HMSet

func (d *Store) HMSet(name interface{}, keys []string, values []interface{}) error

func (*Store) HScan

func (d *Store) HScan(name, prefix interface{}, limit int) (items g.MapStrAny, err error)

func (*Store) HSet

func (d *Store) HSet(name, key, value interface{}) error

func (*Store) HSetTTL

func (d *Store) HSetTTL(name, key, value interface{}, ttl uint64) error

func (*Store) HValues

func (d *Store) HValues(name, prefix interface{}, limit int) (values g.SliceAny, err error)

func (*Store) HValuesTo

func (d *Store) HValuesTo(name, prefix interface{}, limit int, itemsPointer interface{}) error

func (*Store) RunValueLogGC

func (d *Store) RunValueLogGC(discardRatio float64) error

func (*Store) Size

func (d *Store) Size() (lsm, vlog int64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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