db

package
v0.0.0-...-73f109f Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValueDatabase

type KeyValueDatabase interface {
	Get(key string) (string, error)
	Set(key, value string) error
}

type SlowFileDatabase

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

func NewSlowFileDatabase

func NewSlowFileDatabase(filename string, syncThreshold uint64) (*SlowFileDatabase, error)

func (*SlowFileDatabase) Close

func (sfb *SlowFileDatabase) Close()

func (*SlowFileDatabase) Get

func (sfb *SlowFileDatabase) Get(key string) (string, error)

func (*SlowFileDatabase) Open

func (sfb *SlowFileDatabase) Open() error

func (*SlowFileDatabase) Set

func (sfb *SlowFileDatabase) Set(key, value string) error

Jump to

Keyboard shortcuts

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