cache

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Items map[string]interface{}
	*sync.Mutex
}

func (Cache) Delete

func (s Cache) Delete(key string)

func (Cache) Get

func (s Cache) Get(key string) (interface{}, bool)

func (Cache) Keys

func (s Cache) Keys() []string

func (Cache) List

func (s Cache) List() []interface{}

func (Cache) Put

func (s Cache) Put(key string, item interface{})

type Interface

type Interface interface {
	Put(string, interface{})
	Get(string) (interface{}, bool)
	Delete(string)
	List() []interface{}
	Keys() []string
}

func New

func New() Interface

Jump to

Keyboard shortcuts

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