cache

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float64Cache

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

func NewFloat64Cache

func NewFloat64Cache(expiration time.Duration) *Float64Cache

func (*Float64Cache) Get

func (c *Float64Cache) Get(k string) (float64, bool)

func (*Float64Cache) Set

func (c *Float64Cache) Set(k string, v float64)

type StringCache

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

func NewStringCache

func NewStringCache(expiration time.Duration) *StringCache

func (*StringCache) Get

func (c *StringCache) Get(k string) ([]byte, bool)

func (*StringCache) Set

func (c *StringCache) Set(k string, v []byte)

Jump to

Keyboard shortcuts

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