memory

package
v0.14.2-alpha Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoCacheEntry = errors.New("no cache entry")

Functions

func NewCache

func NewCache(_ map[string]any, _ watcher.Watcher) (cache.Cache, error)

Types

type Cache

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

func (*Cache) Get

func (c *Cache) Get(_ context.Context, key string) ([]byte, error)

func (*Cache) Set

func (c *Cache) Set(_ context.Context, key string, value []byte, ttl time.Duration) error

func (*Cache) Start

func (c *Cache) Start(_ context.Context) error

func (*Cache) Stop

func (c *Cache) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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