{"id":26164686,"url":"https://github.com/optum/legion-cache","last_synced_at":"2026-04-22T01:31:32.158Z","repository":{"id":56880975,"uuid":"372972634","full_name":"Optum/legion-cache","owner":"Optum","description":"A Wrapper class for the LegionIO framework to interface with both Memcached and Redis for caching purposes","archived":false,"fork":false,"pushed_at":"2021-06-09T11:39:44.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-08T13:36:54.516Z","etag":null,"topics":["cache","legionio","memcached","redis","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Optum.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2021-06-01T22:07:30.000Z","updated_at":"2021-06-09T11:37:24.000Z","dependencies_parsed_at":"2022-08-20T23:40:10.204Z","dependency_job_id":null,"html_url":"https://github.com/Optum/legion-cache","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Flegion-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Flegion-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Flegion-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Flegion-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optum","download_url":"https://codeload.github.com/Optum/legion-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243060927,"owners_count":20229890,"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","legionio","memcached","redis","ruby"],"created_at":"2025-03-11T15:39:26.412Z","updated_at":"2025-12-25T01:37:44.160Z","avatar_url":"https://github.com/Optum.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Legion::Cache\n=====\n\nLegion::Cache is a wrapper class to handle requests to the caching tier. It supports both memcached and redis\n\nSupported Ruby versions and implementations\n------------------------------------------------\n\nLegion::Json should work identically on:\n\n* JRuby 9.2+\n* Ruby 2.4+\n\n\nInstallation and Usage\n------------------------\n\nYou can verify your installation using this piece of code:\n\n```bash\ngem install legion-cache\n```\n\n```ruby\nrequire 'legion/cache'\n\nLegion::Cache.setup\nLegion::Cache.connected? # =\u003e true\nLegion::Cache.set('foobar', 'testing', ttl: 10)\nLegion::Cache.get('foobar') # =\u003e 'testing'\nsleep(11)\nLegion::Cache.get('foobar') # =\u003e nil\n\n```\n\nSettings\n----------\n\n```json\n{\n  \"driver\": \"dalli\",\n  \"servers\": [\n    \"127.0.0.1:11211\"\n  ],\n  \"connected\": false,\n  \"enabled\": true,\n  \"namespace\": \"legion\",\n  \"compress\": false,\n  \"cache_nils\": false,\n  \"pool_size\": 10,\n  \"timeout\": 10,\n  \"expires_in\": 0\n}\n```\n\nAuthors\n----------\n\n* [Matthew Iverson](https://github.com/Esity) - current maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Flegion-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptum%2Flegion-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Flegion-cache/lists"}