cache

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InlineCache

type InlineCache struct {
	Producer  InlineProducer
	Validator InlineValidator
	// contains filtered or unexported fields
}

func (*InlineCache) Invalidate

func (c *InlineCache) Invalidate()

func (*InlineCache) Value

func (c *InlineCache) Value(args ...interface{}) interface{}

func (*InlineCache) ValueWithError

func (c *InlineCache) ValueWithError(args ...interface{}) (cached interface{}, err error)

type InlineProducer

type InlineProducer func(interface{}, ...interface{}) (interface{}, error)

func InlineProducer0

func InlineProducer0(f func() interface{}) InlineProducer

func InlineProducer0E

func InlineProducer0E(f func() (interface{}, error)) InlineProducer

type InlineValidator

type InlineValidator func(interface{}) bool

Jump to

Keyboard shortcuts

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