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

cache

package
v0.34.20 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryCache

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

InMemoryCache is a concurrent-safe in-memory key-value store.

func NewInMemoryCache

func NewInMemoryCache() *InMemoryCache

func (*InMemoryCache) Delete

func (c *InMemoryCache) Delete(key string)

func (*InMemoryCache) Get

func (c *InMemoryCache) Get(key string) (any, bool)

func (*InMemoryCache) Set

func (c *InMemoryCache) Set(key string, value any)

Jump to

Keyboard shortcuts

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