cache

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) ([]byte, bool)

Get retrieves cached data for the given key. Returns (data, true) if a valid non-expired entry exists.

func Set

func Set(key string, data []byte, ttl time.Duration) error

Set stores data for the given key with a TTL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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