levi

package
v0.0.0-...-2d164a8 Latest Latest
Warning

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

Go to latest
Published: May 4, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const CACHE_SIZE_MB = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level struct {
	Db    *levigo.DB
	ROpts *levigo.ReadOptions
	WOpts *levigo.WriteOptions
}

func New

func New(dbName string) *Level

func (*Level) Close

func (lev *Level) Close()

func (*Level) Find

func (lev *Level) Find(k string) *levigo.Iterator

func (*Level) Get

func (lev *Level) Get(k string) string

Get returns value at key, or "" if record is not found.

func (*Level) Set

func (lev *Level) Set(k, v string)

Set sets a record with key & value. If value is empty, the record is deleted.

Jump to

Keyboard shortcuts

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