diskv

package
v0.0.0-...-3408d66 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Codec is the codec used to marshal/unmarshal interfaces into the byte slices required by the Diskv client
	Codec codec.Codec
)

Functions

This section is empty.

Types

type Diskv

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

Diskv is a Diskv backed key/value store

func New

func New(opts diskv.Options) *Diskv

New returns a new Diskv backed key/value store

func (*Diskv) Del

func (d *Diskv) Del(key string) error

Del implements the "kv.Cache".Del() interface

func (*Diskv) Diskv

func (d *Diskv) Diskv() *diskv.Diskv

Diskv returns the underlying Diskv struct

func (*Diskv) Exists

func (d *Diskv) Exists(key string) bool

Exists implements the "kv.Cache".Exists() interface

func (*Diskv) Get

func (d *Diskv) Get(key string, dstVal interface{}) error

Get implements the "kv.Cache".Get() interface

func (*Diskv) Set

func (d *Diskv) Set(key string, value interface{}) error

Set implements the "kv.Cache".Set() interface

Jump to

Keyboard shortcuts

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