cache

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 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 interface{}) (interface{}, bool)
	Set(key, value interface{}, cost int64) bool
	Wait()
	Close()
}

Cache - Defines an interface for a generic cache.

func NewNoopCache added in v0.3.1

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