store

package
v0.0.0-...-399f02e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(cmdStr []byte) ([]byte, error)

func Init

func Init(keyMaxLen, valMaxLen int, maxSplitDepth int) error

Types

type Command

type Command interface {
	Do(engine Engine) *storeProtocol
}

type Engine

type Engine interface {
	Get(key string) (string, bool)
	Set(key, val string) bool
	Delete(key string) bool
}

func NewMapEngine

func NewMapEngine(keyMaxLen, valMaxLen int, maxSplitDepth int) (Engine, error)

tree lock

Jump to

Keyboard shortcuts

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