cacher

package
v0.0.0-...-31ac3b3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Expiration is the expiration of items in Cache.
	Expiration = gocache.NoExpiration
)

Variables

This section is empty.

Functions

func StartFlusher

func StartFlusher(cache *Cacher, maxCacheSize int, logger log.Logger)

StartFlusher removes all items from the cache when maxCacheSize is exceeded.

Types

type Cacher

type Cacher = gocache.Cache

Cacher is a cache for payloads.

func NewCache

func NewCache() *Cacher

NewCache creates a new in-memory Cache for payloads.

Jump to

Keyboard shortcuts

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