storage

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(opts ...caching.Option) (caching.Cache, error)

Types

type InMemoryCache

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

func (*InMemoryCache) Contains

func (cache *InMemoryCache) Contains(key interface{}) bool

func (*InMemoryCache) Get

func (cache *InMemoryCache) Get(key interface{}) (interface{}, bool)

func (*InMemoryCache) Set

func (cache *InMemoryCache) Set(key, value interface{})

Jump to

Keyboard shortcuts

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