cache

package
v0.0.0-...-ea7eeef Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRistrettoCache

func NewRistrettoCache(log logging.Logger) (*rstCache, error)

Types

type Cache

type Cache interface {
	Get(key interface{}) (interface{}, bool)
	Set(key interface{}, val interface{}, ttlSeconds int) bool
}

func NewCache

func NewCache(log logging.Logger) (Cache, error)

Jump to

Keyboard shortcuts

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