Registry / utility / eko-gocache

eko-gocache

JSON →
library4.1.1+incompatiblegogounverified

A multi-backend caching library for Go with support for in-memory, Redis, and other stores.

go get github.com/eko/gocache
INSTALL
IMPORT
SIG · EKO-GOCACHE
E
eko-gocache
utilitygov4.1.1+incompatible
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

Creates an in-memory cache and stores a key-value pair.

package main import ( "context" "github.com/eko/gocache" ) func main() { cache := gocache.New(gocache.NewMemoryStore()) cache.Set(context.Background(), "key", "value", nil) }
Debug
Known issues
breakingv4 uses a different API than v3; not backward compatible.
fix
Use v4 import path and update code accordingly.
affects: >=4.0.0
Upgrade
Version history
4.1.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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