cacheconfig

package
v0.0.0-...-5165941 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEncoding = msgpackencoding.Encoding
View Source
var DefaultTTL = int64(1800)

Functions

This section is empty.

Types

type Config

type Config struct {
	Storage *Storage
	Preset  Preset
}

type Preset

type Preset struct {
	Namespace string
	Prefix    string
	TTL       int64
}

func (*Preset) Exec

func (p *Preset) Exec(preset *cachepreset.Preset) (*cachepreset.Preset, error)

type Storage

type Storage struct {
	ID     string
	Engine func(v interface{}) error `config:", lazyload"`
}

func (*Storage) ApplyTo

func (s *Storage) ApplyTo(storage *herbcache.Storage) error

Jump to

Keyboard shortcuts

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