Cache

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](key string, val *T) bool

Get retrieves a cached value by key. Returns true if the value was found and successfully unmarshaled, false otherwise.

func Set

func Set[T any](key string, value T) error

Set stores a value in the cache with the given key. Returns an error if marshaling or writing fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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