cache

package
v0.4.2-0...-ac2c6ee Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoExpiration = gocache.NoExpiration
	// For use with functions that take an expiration time. Equivalent to
	// passing in the same expiration duration as was given to New() or
	// NewFrom() when the cache was created (e.g. 5 minutes.)
	DefaultExpiration = gocache.DefaultExpiration
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	*gocache.Cache
	// contains filtered or unexported fields
}

func NewCache

func NewCache(def, interval time.Duration) *Cache

func (*Cache) Close

func (self *Cache) Close()

func (*Cache) Input

func (self *Cache) Input() chan<- interface{}

func (*Cache) Output

func (self *Cache) Output() <-chan interface{}

Jump to

Keyboard shortcuts

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