cache

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntValue

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

func NewIntValue

func NewIntValue(validity time.Duration) *IntValue

func (*IntValue) Get

func (v *IntValue) Get(origin func() (int, error)) (int, error)

func (*IntValue) GetCached

func (v *IntValue) GetCached() (int, bool)

func (*IntValue) HasValue

func (v *IntValue) HasValue() bool

func (*IntValue) Set

func (v *IntValue) Set(value int)

type StringValue

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

func NewStringValue

func NewStringValue(validity time.Duration) *StringValue

func (*StringValue) Get

func (v *StringValue) Get(origin func() (string, error)) (string, error)

func (*StringValue) GetCached

func (v *StringValue) GetCached() (string, bool)

func (*StringValue) HasValue

func (v *StringValue) HasValue() bool

func (*StringValue) Set

func (v *StringValue) Set(value string)

Jump to

Keyboard shortcuts

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