Registry / database / go-redis-cache-v8

go-redis-cache-v8

JSON →
library8.4.4gogounverified

A Redis-backed cache library for Go with support for structs and expiration.

go get github.com/go-redis/cache/v8
INSTALL
IMPORT
SIG · GO-REDIS-CACHE-V8
G
go-redis-cache-v8
databasegov8.4.4
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.

cache
github.com/go-redis/cache/v8

Create a Redis cache and set a key-value pair.

import "github.com/go-redis/cache/v8" func main() { ring := redis.NewRing(&redis.RingOptions{ Addrs: map[string]string{"server1": ":6379"}, }) mycache := cache.New(&cache.Options{ Redis: ring, }) mycache.Set(&cache.Item{ Key: "foo", Value: "bar", }) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources