Registry / utility / jellydator-ttlcache-v3

jellydator-ttlcache-v3

JSON →
library3.3.0gogounverified

In-memory cache with per-entry TTL (time-to-live) and automatic expiration.

go get github.com/jellydator/ttlcache/v3
INSTALL
IMPORT
SIG · JELLYDATOR-TTLCACH
J
jellydator-ttlcache-v3
utilitygov3.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ttlcache
github.com/jellydator/ttlcache/v3

Create and use a TTL cache

package main import ( "fmt" "time" "github.com/jellydator/ttlcache/v3" ) func main() { cache := ttlcache.New[string, string]() cache.Set("key", "value", time.Minute) val, _ := cache.Get("key") fmt.Println(val.Value()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jellydator-ttlcache-v3 — go get jellydator-ttlcache-v3 · libregistry