cache

package
v0.99.35 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

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

Get gets a value from the global memory cache. If the value is missing or the TTL has passed then it will return (nil, false).

func Set

func Set(key string, val interface{})

Set sets a value in the cache without a TTL

func SetWithTTL

func SetWithTTL(key string, val interface{}, ttl time.Duration)

SetWithTTL sets a value in the global memory cache with a TTL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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