cache

package
v0.0.0-...-38fe691 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTimeOut       error = errors.New("The cache has been timeout.")
	ErrKeyNotFound   error = errors.New("The key was not found.")
	ErrTypeAssertion error = errors.New("Type assertion error.")
)

Functions

func Delete

func Delete(key string)

func Get

func Get(key string) (obj interface{}, err error)

func HasKey

func HasKey(key string) bool

func Set

func Set(key string, obj interface{}, timeout time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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