{"id":65280,"library":"go-redis-cache","title":"Go Redis Cache","description":"Package cache provides a Redis-backed caching library for Go with support for structs and expiration.","status":"active","version":"6.4.0+incompatible","language":"go","source_language":null,"source_url":"https://github.com/go-redis/cache","tags":["cache","redis","caching"],"install":[{"cmd":"go get github.com/go-redis/cache","lang":"bash","label":"Install github.com/go-redis/cache"}],"dependencies":[],"imports":[{"symbol":"cache","correct":"github.com/go-redis/cache"}],"quickstart":{"code":"import \"github.com/go-redis/cache\"\n\nfunc main() {\n    ring := redis.NewRing(&redis.RingOptions{\n        Addrs: map[string]string{\"server\": \":6379\"},\n    })\n    c := cache.New(&cache.Options{\n        Redis: ring,\n    })\n    err := c.Set(&cache.Item{\n        Key:   \"mykey\",\n        Value: \"myvalue\",\n    })\n    _ = err\n}","lang":"go","description":"Create a Redis cache and set a key-value pair."},"warnings":[{"fix":"Use import path github.com/go-redis/cache/v6 for version 6.x.","message":"Version 6.4.0+incompatible indicates a major version mismatch; the module path should include /v6 for proper Go modules support.","severity":"breaking","affected_versions":">=6.0.0"}],"env_vars":null,"search_vec":"'back':10 'cach':3,5,11,21,23 'expir':20 'go':1,14 'librari':12 'packag':4 'provid':6 'redi':2,9,22 'redis-back':8 'struct':18 'support':16","created_at":"2026-06-17T17:08:04.053161+00:00","updated_at":"2026-06-17T17:08:04.053161+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-redis/cache","github":"https://github.com/go-redis/cache","docs":"https://pkg.go.dev/github.com/go-redis/cache#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}