adsa-cms: github.com/mmanjoura/adsa-cms/cache/memory Index | Files

package memory

import "github.com/mmanjoura/adsa-cms/cache/memory"

Index

Package Files

memory.go

Variables

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

type Memory Uses

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

func New Uses

func New() *Memory

func (*Memory) Delete Uses

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

func (*Memory) Fetch Uses

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

func (*Memory) Get Uses

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

func (*Memory) Set Uses

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

func (*Memory) Unmarshal Uses

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

Package memory imports 3 packages (graph) and is imported by 1 packages. Updated 2017-06-08. Refresh now. Tools for package owners.