{"action":"created","comment":{"url":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/comments/225611245","pull_request_review_id":165249145,"id":225611245,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTYxMTI0NQ==","diff_hunk":"@@ -14,7 +14,23 @@ gem 'redis-rack-cache'\n \n ## Usage\n \n-If you are using redis-store with Rails, consider using the [redis-rails gem](https://github.com/redis-store/redis-rails) instead. For standalone usage:\n+If you are using redis-store with Rails, consider using the [redis-rails gem](https://github.com/redis-store/redis-rails) instead.\n+\n+In a Rails app, you can configure your `Rack::Cache` stores like this:\n+\n+```ruby\n+# config/application.rb\n+module MyApplication\n+  class Application < Rails::Application\n+    config.action_dispatch.rack_cache = {\n+      metastore: ::Rack::Cache::EntityStore::Redis.new('redis://localhost:6379/0/metastore', default_ttl: 10.days.to_i),\n+      entity_store: ::Rack::Cache::MetaStore::Redis.new('redis://localhost:6380/0/entitystore', default_ttl: 120.days.to_i)","path":"README.md","position":15,"original_position":15,"commit_id":"19c315bd3fbc7cdbfb65b65685dbadab8a4e9b87","original_commit_id":"19c315bd3fbc7cdbfb65b65685dbadab8a4e9b87","user":{"login":"elja","id":716058,"node_id":"MDQ6VXNlcjcxNjA1OA==","avatar_url":"https://avatars0.githubusercontent.com/u/716058?v=4","gravatar_id":"","url":"https://api.github.com/users/elja","html_url":"https://github.com/elja","followers_url":"https://api.github.com/users/elja/followers","following_url":"https://api.github.com/users/elja/following{/other_user}","gists_url":"https://api.github.com/users/elja/gists{/gist_id}","starred_url":"https://api.github.com/users/elja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elja/subscriptions","organizations_url":"https://api.github.com/users/elja/orgs","repos_url":"https://api.github.com/users/elja/repos","events_url":"https://api.github.com/users/elja/events{/privacy}","received_events_url":"https://api.github.com/users/elja/received_events","type":"User","site_admin":false},"body":"entitystore: ::Rack::Cache:: MetaStore::Redis ?\r\n\r\nentitystore = MetaStore????","created_at":"2018-10-16T16:17:40Z","updated_at":"2018-10-16T16:17:40Z","html_url":"https://github.com/redis-store/redis-rack-cache/pull/21#discussion_r225611245","pull_request_url":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/21","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/comments/225611245"},"html":{"href":"https://github.com/redis-store/redis-rack-cache/pull/21#discussion_r225611245"},"pull_request":{"href":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/21","id":131126684,"node_id":"MDExOlB1bGxSZXF1ZXN0MTMxMTI2Njg0","html_url":"https://github.com/redis-store/redis-rack-cache/pull/21","diff_url":"https://github.com/redis-store/redis-rack-cache/pull/21.diff","patch_url":"https://github.com/redis-store/redis-rack-cache/pull/21.patch","issue_url":"https://api.github.com/repos/redis-store/redis-rack-cache/issues/21","number":21,"state":"closed","locked":false,"title":"Configurable default ttl","user":{"login":"tubbo","id":113026,"node_id":"MDQ6VXNlcjExMzAyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/113026?v=4","gravatar_id":"","url":"https://api.github.com/users/tubbo","html_url":"https://github.com/tubbo","followers_url":"https://api.github.com/users/tubbo/followers","following_url":"https://api.github.com/users/tubbo/following{/other_user}","gists_url":"https://api.github.com/users/tubbo/gists{/gist_id}","starred_url":"https://api.github.com/users/tubbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tubbo/subscriptions","organizations_url":"https://api.github.com/users/tubbo/orgs","repos_url":"https://api.github.com/users/tubbo/repos","events_url":"https://api.github.com/users/tubbo/events{/privacy}","received_events_url":"https://api.github.com/users/tubbo/received_events","type":"User","site_admin":false},"body":"Closes #17. Shoutout to @coding-bunny for doing most of the work on this.","created_at":"2017-07-18T16:04:33Z","updated_at":"2018-10-16T16:17:40Z","closed_at":"2018-01-08T20:54:47Z","merged_at":"2018-01-08T20:54:47Z","merge_commit_sha":"b38350733807e81ce5a21d874cfc97be220df375","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/21/commits","review_comments_url":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/21/comments","review_comment_url":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redis-store/redis-rack-cache/issues/21/comments","statuses_url":"https://api.github.com/repos/redis-store/redis-rack-cache/statuses/19c315bd3fbc7cdbfb65b65685dbadab8a4e9b87","head":{"label":"redis-store:configurable-default-ttl","ref":"configurable-default-ttl","sha":"19c315bd3fbc7cdbfb65b65685dbadab8a4e9b87","user":{"login":"redis-store","id":5261509,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyNjE1MDk=","avatar_url":"https://avatars2.githubusercontent.com/u/5261509?v=4","gravatar_id":"","url":"https://api.github.com/users/redis-store","html_url":"https://github.com/redis-store","followers_url":"https://api.github.com/users/redis-store/followers","following_url":"https://api.github.com/users/redis-store/following{/other_user}","gists_url":"https://api.github.com/users/redis-store/gists{/gist_id}","starred_url":"https://api.github.com/users/redis-store/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redis-store/subscriptions","organizations_url":"https://api.github.com/users/redis-store/orgs","repos_url":"https://api.github.com/users/redis-store/repos","events_url":"https://api.github.com/users/redis-store/events{/privacy}","received_events_url":"https://api.github.com/users/redis-store/received_events","type":"Organization","site_admin":false},"repo":{"id":2346974,"node_id":"MDEwOlJlcG9zaXRvcnkyMzQ2OTc0","name":"redis-rack-cache","full_name":"redis-store/redis-rack-cache","private":false,"owner":{"login":"redis-store","id":5261509,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyNjE1MDk=","avatar_url":"https://avatars2.githubusercontent.com/u/5261509?v=4","gravatar_id":"","url":"https://api.github.com/users/redis-store","html_url":"https://github.com/redis-store","followers_url":"https://api.github.com/users/redis-store/followers","following_url":"https://api.github.com/users/redis-store/following{/other_user}","gists_url":"https://api.github.com/users/redis-store/gists{/gist_id}","starred_url":"https://api.github.com/users/redis-store/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redis-store/subscriptions","organizations_url":"https://api.github.com/users/redis-store/orgs","repos_url":"https://api.github.com/users/redis-store/repos","events_url":"https://api.github.com/users/redis-store/events{/privacy}","received_events_url":"https://api.github.com/users/redis-store/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/redis-store/redis-rack-cache","description":"Redis stores for Rack::Cache","fork":false,"url":"https://api.github.com/repos/redis-store/redis-rack-cache","forks_url":"https://api.github.com/repos/redis-store/redis-rack-cache/forks","keys_url":"https://api.github.com/repos/redis-store/redis-rack-cache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redis-store/redis-rack-cache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redis-store/redis-rack-cache/teams","hooks_url":"https://api.github.com/repos/redis-store/redis-rack-cache/hooks","issue_events_url":"https://api.github.com/repos/redis-store/redis-rack-cache/issues/events{/number}","events_url":"https://api.github.com/repos/redis-store/redis-rack-cache/events","assignees_url":"https://api.github.com/repos/redis-store/redis-rack-cache/assignees{/user}","branches_url":"https://api.github.com/repos/redis-store/redis-rack-cache/branches{/branch}","tags_url":"https://api.github.com/repos/redis-store/redis-rack-cache/tags","blobs_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/refs{/sha}","trees_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redis-store/redis-rack-cache/statuses/{sha}","languages_url":"https://api.github.com/repos/redis-store/redis-rack-cache/languages","stargazers_url":"https://api.github.com/repos/redis-store/redis-rack-cache/stargazers","contributors_url":"https://api.github.com/repos/redis-store/redis-rack-cache/contributors","subscribers_url":"https://api.github.com/repos/redis-store/redis-rack-cache/subscribers","subscription_url":"https://api.github.com/repos/redis-store/redis-rack-cache/subscription","commits_url":"https://api.github.com/repos/redis-store/redis-rack-cache/commits{/sha}","git_commits_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/commits{/sha}","comments_url":"https://api.github.com/repos/redis-store/redis-rack-cache/comments{/number}","issue_comment_url":"https://api.github.com/repos/redis-store/redis-rack-cache/issues/comments{/number}","contents_url":"https://api.github.com/repos/redis-store/redis-rack-cache/contents/{+path}","compare_url":"https://api.github.com/repos/redis-store/redis-rack-cache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redis-store/redis-rack-cache/merges","archive_url":"https://api.github.com/repos/redis-store/redis-rack-cache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redis-store/redis-rack-cache/downloads","issues_url":"https://api.github.com/repos/redis-store/redis-rack-cache/issues{/number}","pulls_url":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls{/number}","milestones_url":"https://api.github.com/repos/redis-store/redis-rack-cache/milestones{/number}","notifications_url":"https://api.github.com/repos/redis-store/redis-rack-cache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redis-store/redis-rack-cache/labels{/name}","releases_url":"https://api.github.com/repos/redis-store/redis-rack-cache/releases{/id}","deployments_url":"https://api.github.com/repos/redis-store/redis-rack-cache/deployments","created_at":"2011-09-08T07:27:58Z","updated_at":"2018-10-08T23:38:28Z","pushed_at":"2018-10-08T23:38:26Z","git_url":"git://github.com/redis-store/redis-rack-cache.git","ssh_url":"git@github.com:redis-store/redis-rack-cache.git","clone_url":"https://github.com/redis-store/redis-rack-cache.git","svn_url":"https://github.com/redis-store/redis-rack-cache","homepage":"http://redis-store.org/redis-rack-cache","size":254,"stargazers_count":37,"watchers_count":37,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":19,"open_issues":0,"watchers":37,"default_branch":"master"}},"base":{"label":"redis-store:master","ref":"master","sha":"f29681089db8cc5e190f2a308a79920ef8f57941","user":{"login":"redis-store","id":5261509,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyNjE1MDk=","avatar_url":"https://avatars2.githubusercontent.com/u/5261509?v=4","gravatar_id":"","url":"https://api.github.com/users/redis-store","html_url":"https://github.com/redis-store","followers_url":"https://api.github.com/users/redis-store/followers","following_url":"https://api.github.com/users/redis-store/following{/other_user}","gists_url":"https://api.github.com/users/redis-store/gists{/gist_id}","starred_url":"https://api.github.com/users/redis-store/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redis-store/subscriptions","organizations_url":"https://api.github.com/users/redis-store/orgs","repos_url":"https://api.github.com/users/redis-store/repos","events_url":"https://api.github.com/users/redis-store/events{/privacy}","received_events_url":"https://api.github.com/users/redis-store/received_events","type":"Organization","site_admin":false},"repo":{"id":2346974,"node_id":"MDEwOlJlcG9zaXRvcnkyMzQ2OTc0","name":"redis-rack-cache","full_name":"redis-store/redis-rack-cache","private":false,"owner":{"login":"redis-store","id":5261509,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyNjE1MDk=","avatar_url":"https://avatars2.githubusercontent.com/u/5261509?v=4","gravatar_id":"","url":"https://api.github.com/users/redis-store","html_url":"https://github.com/redis-store","followers_url":"https://api.github.com/users/redis-store/followers","following_url":"https://api.github.com/users/redis-store/following{/other_user}","gists_url":"https://api.github.com/users/redis-store/gists{/gist_id}","starred_url":"https://api.github.com/users/redis-store/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redis-store/subscriptions","organizations_url":"https://api.github.com/users/redis-store/orgs","repos_url":"https://api.github.com/users/redis-store/repos","events_url":"https://api.github.com/users/redis-store/events{/privacy}","received_events_url":"https://api.github.com/users/redis-store/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/redis-store/redis-rack-cache","description":"Redis stores for Rack::Cache","fork":false,"url":"https://api.github.com/repos/redis-store/redis-rack-cache","forks_url":"https://api.github.com/repos/redis-store/redis-rack-cache/forks","keys_url":"https://api.github.com/repos/redis-store/redis-rack-cache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redis-store/redis-rack-cache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redis-store/redis-rack-cache/teams","hooks_url":"https://api.github.com/repos/redis-store/redis-rack-cache/hooks","issue_events_url":"https://api.github.com/repos/redis-store/redis-rack-cache/issues/events{/number}","events_url":"https://api.github.com/repos/redis-store/redis-rack-cache/events","assignees_url":"https://api.github.com/repos/redis-store/redis-rack-cache/assignees{/user}","branches_url":"https://api.github.com/repos/redis-store/redis-rack-cache/branches{/branch}","tags_url":"https://api.github.com/repos/redis-store/redis-rack-cache/tags","blobs_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/refs{/sha}","trees_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redis-store/redis-rack-cache/statuses/{sha}","languages_url":"https://api.github.com/repos/redis-store/redis-rack-cache/languages","stargazers_url":"https://api.github.com/repos/redis-store/redis-rack-cache/stargazers","contributors_url":"https://api.github.com/repos/redis-store/redis-rack-cache/contributors","subscribers_url":"https://api.github.com/repos/redis-store/redis-rack-cache/subscribers","subscription_url":"https://api.github.com/repos/redis-store/redis-rack-cache/subscription","commits_url":"https://api.github.com/repos/redis-store/redis-rack-cache/commits{/sha}","git_commits_url":"https://api.github.com/repos/redis-store/redis-rack-cache/git/commits{/sha}","comments_url":"https://api.github.com/repos/redis-store/redis-rack-cache/comments{/number}","issue_comment_url":"https://api.github.com/repos/redis-store/redis-rack-cache/issues/comments{/number}","contents_url":"https://api.github.com/repos/redis-store/redis-rack-cache/contents/{+path}","compare_url":"https://api.github.com/repos/redis-store/redis-rack-cache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redis-store/redis-rack-cache/merges","archive_url":"https://api.github.com/repos/redis-store/redis-rack-cache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redis-store/redis-rack-cache/downloads","issues_url":"https://api.github.com/repos/redis-store/redis-rack-cache/issues{/number}","pulls_url":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls{/number}","milestones_url":"https://api.github.com/repos/redis-store/redis-rack-cache/milestones{/number}","notifications_url":"https://api.github.com/repos/redis-store/redis-rack-cache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redis-store/redis-rack-cache/labels{/name}","releases_url":"https://api.github.com/repos/redis-store/redis-rack-cache/releases{/id}","deployments_url":"https://api.github.com/repos/redis-store/redis-rack-cache/deployments","created_at":"2011-09-08T07:27:58Z","updated_at":"2018-10-08T23:38:28Z","pushed_at":"2018-10-08T23:38:26Z","git_url":"git://github.com/redis-store/redis-rack-cache.git","ssh_url":"git@github.com:redis-store/redis-rack-cache.git","clone_url":"https://github.com/redis-store/redis-rack-cache.git","svn_url":"https://github.com/redis-store/redis-rack-cache","homepage":"http://redis-store.org/redis-rack-cache","size":254,"stargazers_count":37,"watchers_count":37,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":19,"open_issues":0,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/21"},"html":{"href":"https://github.com/redis-store/redis-rack-cache/pull/21"},"issue":{"href":"https://api.github.com/repos/redis-store/redis-rack-cache/issues/21"},"comments":{"href":"https://api.github.com/repos/redis-store/redis-rack-cache/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redis-store/redis-rack-cache/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/redis-store/redis-rack-cache/statuses/19c315bd3fbc7cdbfb65b65685dbadab8a4e9b87"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"elja"}}