nootcache

package module
v0.0.0-...-ab3aec8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	AddUpdate(key string, value interface{})
	Get(key string) interface{}
	Remove(key string) bool
	Close() error
}

Cache Interface Defining a cache

func GetNootCache

func GetNootCache(size, ringSegments int, expirey time.Duration, evictInterval time.Duration, onEvict func(key string, value interface{}, reason string)) Cache

GetNootCache get a noot cache instance

Jump to

Keyboard shortcuts

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