{"id":22430548,"url":"https://github.com/martenframework/marten-redis-cache","last_synced_at":"2025-08-01T11:32:25.082Z","repository":{"id":153920725,"uuid":"628682044","full_name":"martenframework/marten-redis-cache","owner":"martenframework","description":"A Redis cache store for the Marten web framework. ","archived":false,"fork":false,"pushed_at":"2024-07-11T21:31:37.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-12T00:15:15.291Z","etag":null,"topics":["cache","crystal","framework","marten","redis","web"],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martenframework.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2023-04-16T17:45:27.000Z","updated_at":"2024-07-11T21:31:41.000Z","dependencies_parsed_at":"2024-01-10T04:23:27.364Z","dependency_job_id":"77f419f5-2773-4aa3-a02b-4b4a029b541a","html_url":"https://github.com/martenframework/marten-redis-cache","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martenframework%2Fmarten-redis-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martenframework%2Fmarten-redis-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martenframework%2Fmarten-redis-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martenframework%2Fmarten-redis-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martenframework","download_url":"https://codeload.github.com/martenframework/marten-redis-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228371009,"owners_count":17909389,"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","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":["cache","crystal","framework","marten","redis","web"],"created_at":"2024-12-05T21:08:48.690Z","updated_at":"2024-12-05T21:08:49.930Z","avatar_url":"https://github.com/martenframework.png","language":"Crystal","funding_links":[],"categories":["Marten shards"],"sub_categories":["Caching"],"readme":"# Marten Redis Cache\n\n[![CI](https://github.com/martenframework/marten-redis-cache/workflows/Specs/badge.svg)](https://github.com/martenframework/marten-redis-cache/actions)\n[![CI](https://github.com/martenframework/marten-redis-cache/workflows/QA/badge.svg)](https://github.com/martenframework/marten-redis-cache/actions)\n\n**Marten Redis Cache** provides a [Redis](https://redis.io) cache store that can be used with Marten web framework's [cache system](https://martenframework.com/docs/caching).\n\n## Installation\n\nSimply add the following entry to your project's `shard.yml`:\n\n```yaml\ndependencies:\n  marten_redis_cache:\n    github: martenframework/marten-redis-cache\n```\n\nAnd run `shards install` afterward.\n\n## Configuration\n\nFirst, add the following requirement to your project's `src/project.cr` file:\n\n```crystal\nrequire \"marten_redis_cache\"\n```\n\nThen you can configure your project to use the Redis cache store by setting the corresponding configuration option as follows:\n\n```crystal\nMarten.configure do |config|\n  config.cache_store = MartenRedisCache::Store.new(uri: \"redis:///\")\nend\n```\n\nThe `uri` argument is optional: unless specified, the client will attempt to connect to Redis on `localhost` and port `6379`. It should be noted that this cache store also supports all the existing initialization options in addition to the `uri` argument (eg. `namespace`, `version`, `expires_in`, etc). Please refer to the [cache system documentation](https://martenframework.com/docs/caching) to learn more about Marten's caching framework.\n\n## Authors\n\nMorgan Aubert ([@ellmetha](https://github.com/ellmetha)) and \n[contributors](https://github.com/martenframework/marten-redis-cache/contributors).\n\n## License\n\nMIT. See ``LICENSE`` for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartenframework%2Fmarten-redis-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartenframework%2Fmarten-redis-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartenframework%2Fmarten-redis-cache/lists"}