cache

package
v0.0.0-...-a41518b Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigCache

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

func NewBigCache

func NewBigCache(b backend.Backend, config *cache.Big) *BigCache

func (*BigCache) Get

func (bc *BigCache) Get(k string) (string, error)

type Cache

type Cache interface {
	Get(key string) (string, error)
}

type FastCache

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

func NewFastCache

func NewFastCache(backend backend.Backend, conf *cache.Fast) *FastCache

func (FastCache) Get

func (fc FastCache) Get(k string) (string, error)

type FreeCache

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

func NewFreeCache

func NewFreeCache(backend backend.Backend, conf *cache.Free) *FreeCache

func (FreeCache) Get

func (fc FreeCache) Get(k string) (string, error)

type Lru

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

func NewLru

func NewLru(b backend.Backend, conf *cache.Lru) *Lru

func (Lru) Get

func (lru Lru) Get(k string) (string, error)

type Ristretto

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

func NewRistrettoCache

func NewRistrettoCache(b backend.Backend, conf *cache.Ristretto) *Ristretto

func (Ristretto) Get

func (rs Ristretto) Get(k string) (string, error)

type ShushCache

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

func NewShushCache

func NewShushCache(c Cache) *ShushCache

func (ShushCache) Get

func (sc ShushCache) Get(k string) (model.Url, error)

Jump to

Keyboard shortcuts

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