{"id":19403971,"url":"https://github.com/44437/rediscache","last_synced_at":"2025-10-05T15:42:52.014Z","repository":{"id":249846485,"uuid":"489450371","full_name":"44437/rediscache","owner":"44437","description":"This package makes it easy to abstract your Redis connection and utilize Get and Set methods.","archived":false,"fork":false,"pushed_at":"2022-05-07T07:37:34.000Z","size":9,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T07:56:16.584Z","etag":null,"topics":["go","golang","redis","redis-cache","redis-client","redis-database","redis-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/44437.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-06T18:06:29.000Z","updated_at":"2024-10-26T11:22:44.000Z","dependencies_parsed_at":"2024-07-23T18:44:33.763Z","dependency_job_id":"142cefae-18d0-4356-9fec-fa6cc7e9aeb1","html_url":"https://github.com/44437/rediscache","commit_stats":null,"previous_names":["44437/rediscache"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/44437/rediscache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/44437%2Frediscache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/44437%2Frediscache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/44437%2Frediscache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/44437%2Frediscache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/44437","download_url":"https://codeload.github.com/44437/rediscache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/44437%2Frediscache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278477817,"owners_count":25993540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","redis","redis-cache","redis-client","redis-database","redis-server"],"created_at":"2024-11-10T11:32:10.650Z","updated_at":"2025-10-05T15:42:51.982Z","avatar_url":"https://github.com/44437.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rediscache\n\n[![Pipeline](https://github.com/ercantopuz/rediscache/actions/workflows/ci.yaml/badge.svg)](https://github.com/ercantopuz/rediscache/actions/workflows/ci.yaml)\n[![codecov](https://codecov.io/gh/ercantopuz/rediscache/branch/master/graph/badge.svg?token=DV0KA0K3X8)](https://codecov.io/gh/ercantopuz/rediscache)\n[![Release](https://img.shields.io/github/release/ercantopuz/rediscache.svg?style=flat-square)](https://github.com/ercantopuz/rediscache/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ercantopuz/rediscache)](https://goreportcard.com/report/github.com/ercantopuz/rediscache)\n\n## Installation\n\nThis package makes it easy to abstract your Redis connection and use Get and Set methods.\n\n```sh\ngo get github.com/ercantopuz/rediscache\n```\n\nImport it in your code:\n```go\nimport \"github.com/ercantopuz/rediscache\"\n```\n### Quick start\n\n```go\npackage main\n\nimport \"github.com/ercantopuz/rediscache\"\n\nfunc main() {\n\t\n\t// It has all the properties of the redis.Options\n\tredisCacheOptions := rediscache.Options{\n\t\tAddr:               \"\",\n\t\tUsername:           \"\",\n\t\tPassword:           \"\",\n\t\tDB:                 0,\n\t}\n\tredisCache := rediscache.NewRedisCache(\n\t\texpire,\n\t\tredisCacheOptions)\n}\n```\n\n```go\npackage service\n\nimport (\n\t\"context\"\n\t\"github.com/ercantopuz/rediscache\"\n)\n\ntype service struct {\n\tredisCache rediscache.Cache\n}\n\nfunc (s *service) GetData() {\n\tvar err error\n\tvar expectedData model.Data{}\n\n\texpectedData, err = s.redisCache.Get(\n\t\tcontext.Background(),\n\t\tkey,\n\t\texpectedData)\n\t\n\t/****/\n\t\n\terr = s.redisCache.Set(\n\t\tcontext.Background(),\n\t\tkey,\n\t\tdataFromRepository)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F44437%2Frediscache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F44437%2Frediscache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F44437%2Frediscache/lists"}