Help us shape the future of Go! Take the 2026 Go Developer Survey

memory

package
v0.17.28 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 12 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(_ app.Context, conf map[string]any) (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