Registry / utility / eko-gocache-v2

eko-gocache-v2

JSON →
library2.3.1gogounverified

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

go get github.com/eko/gocache/v2
INSTALL
IMPORT
SIG · EKO-GOCACHE-V2
E
eko-gocache-v2
utilitygov2.3.1
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/v2

Create an in-memory cache, set and get a value

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

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
eko-gocache-v2 — go get eko-gocache-v2 · libregistry