{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/91273601","pull_request_review_id":11780018,"id":91273601,"diff_hunk":"@@ -204,6 +208,13 @@ def __init__(self, server, params):\n     def _cache(self):\n         return self._lib.Client(self._servers, **self._options)\n \n+    def touch(self, key, timeout=DEFAULT_TIMEOUT, version=None):\n+        key = self.make_key(key, version=version)\n+        if (timeout == 0):\n+            return self._cache.delete(key)\n+        else:","path":"django/core/cache/backends/memcached.py","position":25,"original_position":25,"commit_id":"b3111ae48d916d4b0d7b38ce43170cf2186e4809","original_commit_id":"b3111ae48d916d4b0d7b38ce43170cf2186e4809","user":{"login":"adamchainz","id":857609,"avatar_url":"https://avatars.githubusercontent.com/u/857609?v=3","gravatar_id":"","url":"https://api.github.com/users/adamchainz","html_url":"https://github.com/adamchainz","followers_url":"https://api.github.com/users/adamchainz/followers","following_url":"https://api.github.com/users/adamchainz/following{/other_user}","gists_url":"https://api.github.com/users/adamchainz/gists{/gist_id}","starred_url":"https://api.github.com/users/adamchainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamchainz/subscriptions","organizations_url":"https://api.github.com/users/adamchainz/orgs","repos_url":"https://api.github.com/users/adamchainz/repos","events_url":"https://api.github.com/users/adamchainz/events{/privacy}","received_events_url":"https://api.github.com/users/adamchainz/received_events","type":"User","site_admin":false},"body":"ditto no need for `else`","created_at":"2016-12-07T11:22:41Z","updated_at":"2016-12-07T11:22:41Z","html_url":"https://github.com/django/django/pull/7610#discussion_r91273601","pull_request_url":"https://api.github.com/repos/django/django/pulls/7610","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/91273601"},"html":{"href":"https://github.com/django/django/pull/7610#discussion_r91273601"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/7610"}}},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/7610","id":95146437,"html_url":"https://github.com/django/django/pull/7610","diff_url":"https://github.com/django/django/pull/7610.diff","patch_url":"https://github.com/django/django/pull/7610.patch","issue_url":"https://api.github.com/repos/django/django/issues/7610","number":7610,"state":"open","locked":false,"title":"Fixed #27480 -- Added cache.touch() method.","user":{"login":"niconoe","id":386387,"avatar_url":"https://avatars.githubusercontent.com/u/386387?v=3","gravatar_id":"","url":"https://api.github.com/users/niconoe","html_url":"https://github.com/niconoe","followers_url":"https://api.github.com/users/niconoe/followers","following_url":"https://api.github.com/users/niconoe/following{/other_user}","gists_url":"https://api.github.com/users/niconoe/gists{/gist_id}","starred_url":"https://api.github.com/users/niconoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niconoe/subscriptions","organizations_url":"https://api.github.com/users/niconoe/orgs","repos_url":"https://api.github.com/users/niconoe/repos","events_url":"https://api.github.com/users/niconoe/events{/privacy}","received_events_url":"https://api.github.com/users/niconoe/received_events","type":"User","site_admin":false},"body":"Here I provide a naive implementation in BaseCache. I'd also like to contribute more optimized versions in subclasses.","created_at":"2016-11-24T09:51:48Z","updated_at":"2016-12-07T11:22:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9994d375c2667bd39e13b82a3c9e7d8f372ce8a1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/7610/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/7610/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/7610/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/b3111ae48d916d4b0d7b38ce43170cf2186e4809","head":{"label":"niconoe:ticket_27480","ref":"ticket_27480","sha":"b3111ae48d916d4b0d7b38ce43170cf2186e4809","user":{"login":"niconoe","id":386387,"avatar_url":"https://avatars.githubusercontent.com/u/386387?v=3","gravatar_id":"","url":"https://api.github.com/users/niconoe","html_url":"https://github.com/niconoe","followers_url":"https://api.github.com/users/niconoe/followers","following_url":"https://api.github.com/users/niconoe/following{/other_user}","gists_url":"https://api.github.com/users/niconoe/gists{/gist_id}","starred_url":"https://api.github.com/users/niconoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niconoe/subscriptions","organizations_url":"https://api.github.com/users/niconoe/orgs","repos_url":"https://api.github.com/users/niconoe/repos","events_url":"https://api.github.com/users/niconoe/events{/privacy}","received_events_url":"https://api.github.com/users/niconoe/received_events","type":"User","site_admin":false},"repo":{"id":34509918,"name":"django","full_name":"niconoe/django","owner":{"login":"niconoe","id":386387,"avatar_url":"https://avatars.githubusercontent.com/u/386387?v=3","gravatar_id":"","url":"https://api.github.com/users/niconoe","html_url":"https://github.com/niconoe","followers_url":"https://api.github.com/users/niconoe/followers","following_url":"https://api.github.com/users/niconoe/following{/other_user}","gists_url":"https://api.github.com/users/niconoe/gists{/gist_id}","starred_url":"https://api.github.com/users/niconoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niconoe/subscriptions","organizations_url":"https://api.github.com/users/niconoe/orgs","repos_url":"https://api.github.com/users/niconoe/repos","events_url":"https://api.github.com/users/niconoe/events{/privacy}","received_events_url":"https://api.github.com/users/niconoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niconoe/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/niconoe/django","forks_url":"https://api.github.com/repos/niconoe/django/forks","keys_url":"https://api.github.com/repos/niconoe/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niconoe/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niconoe/django/teams","hooks_url":"https://api.github.com/repos/niconoe/django/hooks","issue_events_url":"https://api.github.com/repos/niconoe/django/issues/events{/number}","events_url":"https://api.github.com/repos/niconoe/django/events","assignees_url":"https://api.github.com/repos/niconoe/django/assignees{/user}","branches_url":"https://api.github.com/repos/niconoe/django/branches{/branch}","tags_url":"https://api.github.com/repos/niconoe/django/tags","blobs_url":"https://api.github.com/repos/niconoe/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niconoe/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niconoe/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/niconoe/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niconoe/django/statuses/{sha}","languages_url":"https://api.github.com/repos/niconoe/django/languages","stargazers_url":"https://api.github.com/repos/niconoe/django/stargazers","contributors_url":"https://api.github.com/repos/niconoe/django/contributors","subscribers_url":"https://api.github.com/repos/niconoe/django/subscribers","subscription_url":"https://api.github.com/repos/niconoe/django/subscription","commits_url":"https://api.github.com/repos/niconoe/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/niconoe/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/niconoe/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/niconoe/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/niconoe/django/contents/{+path}","compare_url":"https://api.github.com/repos/niconoe/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niconoe/django/merges","archive_url":"https://api.github.com/repos/niconoe/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niconoe/django/downloads","issues_url":"https://api.github.com/repos/niconoe/django/issues{/number}","pulls_url":"https://api.github.com/repos/niconoe/django/pulls{/number}","milestones_url":"https://api.github.com/repos/niconoe/django/milestones{/number}","notifications_url":"https://api.github.com/repos/niconoe/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niconoe/django/labels{/name}","releases_url":"https://api.github.com/repos/niconoe/django/releases{/id}","deployments_url":"https://api.github.com/repos/niconoe/django/deployments","created_at":"2015-04-24T09:27:24Z","updated_at":"2016-04-18T14:10:03Z","pushed_at":"2016-12-07T10:55:08Z","git_url":"git://github.com/niconoe/django.git","ssh_url":"git@github.com:niconoe/django.git","clone_url":"https://github.com/niconoe/django.git","svn_url":"https://github.com/niconoe/django","homepage":"https://www.djangoproject.com/","size":147996,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"django:master","ref":"master","sha":"183f5015408ffe0d3a22203ddaf7a3a56da025fd","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":4164482,"name":"django","full_name":"django/django","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django","description":"The Web framework for perfectionists with deadlines.","fork":false,"url":"https://api.github.com/repos/django/django","forks_url":"https://api.github.com/repos/django/django/forks","keys_url":"https://api.github.com/repos/django/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django/teams","hooks_url":"https://api.github.com/repos/django/django/hooks","issue_events_url":"https://api.github.com/repos/django/django/issues/events{/number}","events_url":"https://api.github.com/repos/django/django/events","assignees_url":"https://api.github.com/repos/django/django/assignees{/user}","branches_url":"https://api.github.com/repos/django/django/branches{/branch}","tags_url":"https://api.github.com/repos/django/django/tags","blobs_url":"https://api.github.com/repos/django/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django/languages","stargazers_url":"https://api.github.com/repos/django/django/stargazers","contributors_url":"https://api.github.com/repos/django/django/contributors","subscribers_url":"https://api.github.com/repos/django/django/subscribers","subscription_url":"https://api.github.com/repos/django/django/subscription","commits_url":"https://api.github.com/repos/django/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django/contents/{+path}","compare_url":"https://api.github.com/repos/django/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django/merges","archive_url":"https://api.github.com/repos/django/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django/downloads","issues_url":"https://api.github.com/repos/django/django/issues{/number}","pulls_url":"https://api.github.com/repos/django/django/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django/labels{/name}","releases_url":"https://api.github.com/repos/django/django/releases{/id}","deployments_url":"https://api.github.com/repos/django/django/deployments","created_at":"2012-04-28T02:47:18Z","updated_at":"2016-12-07T10:37:07Z","pushed_at":"2016-12-07T10:55:15Z","git_url":"git://github.com/django/django.git","ssh_url":"git@github.com:django/django.git","clone_url":"https://github.com/django/django.git","svn_url":"https://github.com/django/django","homepage":"https://www.djangoproject.com/","size":218501,"stargazers_count":22467,"watchers_count":22467,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9088,"mirror_url":null,"open_issues_count":110,"forks":9088,"open_issues":110,"watchers":22467,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/7610"},"html":{"href":"https://github.com/django/django/pull/7610"},"issue":{"href":"https://api.github.com/repos/django/django/issues/7610"},"comments":{"href":"https://api.github.com/repos/django/django/issues/7610/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/7610/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/7610/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/b3111ae48d916d4b0d7b38ce43170cf2186e4809"}}}}
{"actor":{"display_login":"adamchainz"}}