memory

package
v0.0.0-...-c9d48d1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Memory

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

func New

func New() *Memory

func (*Memory) Delete

func (memory *Memory) Delete(key string) error

func (*Memory) Fetch

func (memory *Memory) Fetch(key string, fc func() interface{}) (string, error)

func (*Memory) Get

func (memory *Memory) Get(key string) (string, error)

func (*Memory) Set

func (memory *Memory) Set(key string, value interface{}) error

func (*Memory) Unmarshal

func (memory *Memory) Unmarshal(key string, object interface{}) error

Jump to

Keyboard shortcuts

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