cache

package module
v0.0.0-...-0430c56 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCache

func GetCache(duration time.Duration, cleanupInterval time.Duration) cache.Cacher

GetCache returns a caching object

func GetMeteredCache

func GetMeteredCache(duration time.Duration, cleanupInterval time.Duration) cache.Cacher

GetMeteredCache returns a caching object

func SetNoop

func SetNoop(noop bool)

SetNoop tells whether or not next call of GetCache would return a NoopCacher

Types

This section is empty.

Jump to

Keyboard shortcuts

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