Registry / utility / aspiesoft-go-ttlcache

aspiesoft-go-ttlcache

JSON →
library1.2.2gogounverified

A Go library providing a time-to-live (TTL) cache with automatic expiration of entries.

go get github.com/AspieSoft/go-ttlcache
INSTALL
IMPORT
SIG · ASPIESOFT-GO-TTLCA
A
aspiesoft-go-ttlcache
utilitygov1.2.2
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/AspieSoft/go-ttlcache

Creates a TTL cache, sets a key-value pair, and retrieves it.

package main import ( "fmt" "time" "github.com/AspieSoft/go-ttlcache" ) func main() { cache := ttlcache.NewCache(5 * time.Minute) cache.Set("key", "value") val, ok := cache.Get("key") if ok { fmt.Println(val) } }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
2
Meta
1
Resources
aspiesoft-go-ttlcache — go get aspiesoft-go-ttlcache · libregistry