cache

package
v0.0.0-...-839bc5d Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 0 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 {
	Get(key any) (any, bool)
	Set(key, entry any, cost int64) bool
	Wait()
	Close()
}

Cache - Defines an interface for a generic cache.

func NewNoopCache

func NewNoopCache() Cache

type Engine

type Engine string

Engine - Engine type for cache

const (
	RISTRETTO Engine = "ristretto"
)

func (Engine) String

func (c Engine) String() string

String - String converter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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