storage

package
v0.0.0-...-df2b3d5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemStore

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

MemStore is an in-memory Store implementation.

func NewMemStore

func NewMemStore() *MemStore

NewMemStore returns a new MemoryStore.

func (*MemStore) Get

func (s *MemStore) Get(key []byte) ([]byte, error)

Get implements the Store interface.

func (*MemStore) Has

func (s *MemStore) Has(key []byte) bool

Has implements the Store interface.

func (*MemStore) Len

func (s *MemStore) Len() int

Len makes us use the Memory as a Batcher.

func (*MemStore) Put

func (s *MemStore) Put(key, val []byte) error

Put implements the Store interface.

Jump to

Keyboard shortcuts

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