cache

package
v0.0.0-...-5f2f827 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

type Cacher interface {
	Get(key interface{}) (interface{}, bool)
	Set(key, value interface{}) bool
}

type InMemory

type InMemory struct {
	// contains filtered or unexported fields
}

func NewInMemory

func NewInMemory() *InMemory

func (*InMemory) Get

func (c *InMemory) Get(key interface{}) (interface{}, bool)

func (*InMemory) Set

func (c *InMemory) Set(key, value interface{}) bool

type Ristretto

type Ristretto struct {
	// contains filtered or unexported fields
}

func NewRistretto

func NewRistretto() (*Ristretto, error)

func (*Ristretto) Get

func (c *Ristretto) Get(key interface{}) (interface{}, bool)

func (*Ristretto) Set

func (c *Ristretto) Set(key, value interface{}) bool

Jump to

Keyboard shortcuts

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