Registry / utility / eko-gocache-v3

eko-gocache-v3

JSON →
library3.1.2gogounverified

Multi-backend caching library for Go with support for in-memory, Redis, and more.

go get github.com/eko/gocache/v3
INSTALL
IMPORT
SIG · EKO-GOCACHE-V3
E
eko-gocache-v3
utilitygov3.1.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.

gocache
github.com/eko/gocache/v3

Set and get a value from in-memory cache

package main import ( "fmt" "github.com/eko/gocache/v3" "github.com/eko/gocache/v3/store" ) func main() { cache := gocache.New(store.NewMemoryStore()) err := cache.Set("key", "value") if err != nil { fmt.Println(err) } val, _ := cache.Get("key") fmt.Println(val) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
eko-gocache-v3 — go get eko-gocache-v3 · libregistry