ttlcache

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TTLCache

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

func NewTTLCache

func NewTTLCache(timeout time.Duration) *TTLCache

func (*TTLCache) Delete

func (self *TTLCache) Delete(key interface{})

func (*TTLCache) Get

func (self *TTLCache) Get(key interface{}) (interface{}, bool)

func (*TTLCache) GetAll

func (self *TTLCache) GetAll() []interface{}

func (*TTLCache) Put

func (self *TTLCache) Put(key interface{}, obj interface{})

Jump to

Keyboard shortcuts

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