{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/35696339","id":35696339,"diff_hunk":"@@ -241,6 +332,19 @@ There are some common options used by all cache implementations. These can be pa\n \n * `:race_condition_ttl` - This option is used in conjunction with the `:expires_in` option. It will prevent race conditions when cache entries expire by preventing multiple processes from simultaneously regenerating the same entry (also known as the dog pile effect). This option sets the number of seconds that an expired entry can be reused while a new value is being regenerated. It's a good practice to set this value if you use the `:expires_in` option.\n \n+#### Custom Cache Stores\n+\n+You can create your own custom cache store by simply extending\n+`ActiveSupport::Cache::Store` and implementing the appropriate methods. This way,","path":"guides/source/caching_with_rails.md","position":136,"original_position":136,"commit_id":"c4652cdbaead645ebdb859a49903653f607367c5","original_commit_id":"c4652cdbaead645ebdb859a49903653f607367c5","user":{"login":"kaspth","id":350807,"avatar_url":"https://avatars.githubusercontent.com/u/350807?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspth","html_url":"https://github.com/kaspth","followers_url":"https://api.github.com/users/kaspth/followers","following_url":"https://api.github.com/users/kaspth/following{/other_user}","gists_url":"https://api.github.com/users/kaspth/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspth/subscriptions","organizations_url":"https://api.github.com/users/kaspth/orgs","repos_url":"https://api.github.com/users/kaspth/repos","events_url":"https://api.github.com/users/kaspth/events{/privacy}","received_events_url":"https://api.github.com/users/kaspth/received_events","type":"User","site_admin":false},"body":"As reader I'm wondering \"what are the appropriate methods?\" And since I can't see them here, I wonder where I can find out what they are. Lets help the readers out and not cause a mental drip :smile:","created_at":"2015-07-28T20:28:11Z","updated_at":"2015-07-28T20:28:11Z","html_url":"https://github.com/rails/rails/pull/21052#discussion_r35696339","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/21052","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/35696339"},"html":{"href":"https://github.com/rails/rails/pull/21052#discussion_r35696339"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/21052"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/21052","id":41055185,"html_url":"https://github.com/rails/rails/pull/21052","diff_url":"https://github.com/rails/rails/pull/21052.diff","patch_url":"https://github.com/rails/rails/pull/21052.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/21052","number":21052,"state":"open","locked":false,"title":"Publish the \"Caching with Rails\" guide","user":{"login":"robin850","id":354185,"avatar_url":"https://avatars.githubusercontent.com/u/354185?v=3","gravatar_id":"","url":"https://api.github.com/users/robin850","html_url":"https://github.com/robin850","followers_url":"https://api.github.com/users/robin850/followers","following_url":"https://api.github.com/users/robin850/following{/other_user}","gists_url":"https://api.github.com/users/robin850/gists{/gist_id}","starred_url":"https://api.github.com/users/robin850/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robin850/subscriptions","organizations_url":"https://api.github.com/users/robin850/orgs","repos_url":"https://api.github.com/users/robin850/repos","events_url":"https://api.github.com/users/robin850/events{/privacy}","received_events_url":"https://api.github.com/users/robin850/received_events","type":"User","site_admin":false},"body":"Hello!\r\n\r\nThis pull request is a potential work in progress in order to publish the caching guide as pull request #21015 intended to do.\r\n\r\nI open this pull request to get some feedback and see what's still left to publish this guide. I take the liberty to ping you @ddh and @kaspth as you improved this area a lot recently.\r\n\r\nCommit 9065d60 mostly duplicate the `#cache` method's documentation as it contains pretty important stuff but I'm not sure whether this is a good idea.\r\n\r\nA possible addition could also be done once #18875 is closed.\r\n\r\nHave a nice day!","created_at":"2015-07-28T20:15:55Z","updated_at":"2015-07-28T20:28:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e05e2c1821e2275da3a6af804fab73127a56a644","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/21052/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/21052/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/21052/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/c4652cdbaead645ebdb859a49903653f607367c5","head":{"label":"robin850:caching-guide","ref":"caching-guide","sha":"c4652cdbaead645ebdb859a49903653f607367c5","user":{"login":"robin850","id":354185,"avatar_url":"https://avatars.githubusercontent.com/u/354185?v=3","gravatar_id":"","url":"https://api.github.com/users/robin850","html_url":"https://github.com/robin850","followers_url":"https://api.github.com/users/robin850/followers","following_url":"https://api.github.com/users/robin850/following{/other_user}","gists_url":"https://api.github.com/users/robin850/gists{/gist_id}","starred_url":"https://api.github.com/users/robin850/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robin850/subscriptions","organizations_url":"https://api.github.com/users/robin850/orgs","repos_url":"https://api.github.com/users/robin850/repos","events_url":"https://api.github.com/users/robin850/events{/privacy}","received_events_url":"https://api.github.com/users/robin850/received_events","type":"User","site_admin":false},"repo":{"id":9692235,"name":"rails","full_name":"robin850/rails","owner":{"login":"robin850","id":354185,"avatar_url":"https://avatars.githubusercontent.com/u/354185?v=3","gravatar_id":"","url":"https://api.github.com/users/robin850","html_url":"https://github.com/robin850","followers_url":"https://api.github.com/users/robin850/followers","following_url":"https://api.github.com/users/robin850/following{/other_user}","gists_url":"https://api.github.com/users/robin850/gists{/gist_id}","starred_url":"https://api.github.com/users/robin850/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robin850/subscriptions","organizations_url":"https://api.github.com/users/robin850/orgs","repos_url":"https://api.github.com/users/robin850/repos","events_url":"https://api.github.com/users/robin850/events{/privacy}","received_events_url":"https://api.github.com/users/robin850/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robin850/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/robin850/rails","forks_url":"https://api.github.com/repos/robin850/rails/forks","keys_url":"https://api.github.com/repos/robin850/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robin850/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robin850/rails/teams","hooks_url":"https://api.github.com/repos/robin850/rails/hooks","issue_events_url":"https://api.github.com/repos/robin850/rails/issues/events{/number}","events_url":"https://api.github.com/repos/robin850/rails/events","assignees_url":"https://api.github.com/repos/robin850/rails/assignees{/user}","branches_url":"https://api.github.com/repos/robin850/rails/branches{/branch}","tags_url":"https://api.github.com/repos/robin850/rails/tags","blobs_url":"https://api.github.com/repos/robin850/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robin850/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robin850/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/robin850/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robin850/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/robin850/rails/languages","stargazers_url":"https://api.github.com/repos/robin850/rails/stargazers","contributors_url":"https://api.github.com/repos/robin850/rails/contributors","subscribers_url":"https://api.github.com/repos/robin850/rails/subscribers","subscription_url":"https://api.github.com/repos/robin850/rails/subscription","commits_url":"https://api.github.com/repos/robin850/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/robin850/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/robin850/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/robin850/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/robin850/rails/contents/{+path}","compare_url":"https://api.github.com/repos/robin850/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robin850/rails/merges","archive_url":"https://api.github.com/repos/robin850/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robin850/rails/downloads","issues_url":"https://api.github.com/repos/robin850/rails/issues{/number}","pulls_url":"https://api.github.com/repos/robin850/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/robin850/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/robin850/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robin850/rails/labels{/name}","releases_url":"https://api.github.com/repos/robin850/rails/releases{/id}","created_at":"2013-04-26T09:49:27Z","updated_at":"2014-07-23T17:30:50Z","pushed_at":"2015-07-28T20:06:32Z","git_url":"git://github.com/robin850/rails.git","ssh_url":"git@github.com:robin850/rails.git","clone_url":"https://github.com/robin850/rails.git","svn_url":"https://github.com/robin850/rails","homepage":"http://rubyonrails.org","size":135468,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"90e893d447e2ae2f20a54a7b8aff4c46a7b108f6","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2015-07-28T19:51:56Z","pushed_at":"2015-07-28T20:15:56Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":433919,"stargazers_count":27053,"watchers_count":27053,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10841,"mirror_url":null,"open_issues_count":876,"forks":10841,"open_issues":876,"watchers":27053,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/21052"},"html":{"href":"https://github.com/rails/rails/pull/21052"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/21052"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/21052/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/21052/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/21052/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/c4652cdbaead645ebdb859a49903653f607367c5"}}}}