{"action":"closed","number":87,"pull_request":{"url":"https://api.github.com/repos/aschuch/AwesomeCache/pulls/87","id":85950908,"html_url":"https://github.com/aschuch/AwesomeCache/pull/87","diff_url":"https://github.com/aschuch/AwesomeCache/pull/87.diff","patch_url":"https://github.com/aschuch/AwesomeCache/pull/87.patch","issue_url":"https://api.github.com/repos/aschuch/AwesomeCache/issues/87","number":87,"state":"closed","locked":false,"title":"add isOnMemory (recreated)","user":{"login":"notohiro","id":3214999,"avatar_url":"https://avatars.githubusercontent.com/u/3214999?v=3","gravatar_id":"","url":"https://api.github.com/users/notohiro","html_url":"https://github.com/notohiro","followers_url":"https://api.github.com/users/notohiro/followers","following_url":"https://api.github.com/users/notohiro/following{/other_user}","gists_url":"https://api.github.com/users/notohiro/gists{/gist_id}","starred_url":"https://api.github.com/users/notohiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notohiro/subscriptions","organizations_url":"https://api.github.com/users/notohiro/orgs","repos_url":"https://api.github.com/users/notohiro/repos","events_url":"https://api.github.com/users/notohiro/events{/privacy}","received_events_url":"https://api.github.com/users/notohiro/received_events","type":"User","site_admin":false},"body":"Add a way to check whether a cache is on memory for a specific key.\r\nI wanna do things likes below.\r\n\r\n1. Check whether a cache is on memory for a specific key.\r\n2. If it is on memory, do 'object(forKey:)' synchronously, because it is guaranteed that object will be returned instantly. \r\n3. If not on memory, create a thread and operate 'object(forKey:)' asynchronously. it is because 'object(forKey:)' has to access a disk and takes longer time to return the value than when the cache is on memory.\r\n\r\nBecause of my application have to access hundreds of object, I need to decrease the number of threads as much as I can.\r\n\r\noriginal PR is here https://github.com/aschuch/AwesomeCache/pull/80","created_at":"2016-09-20T10:41:50Z","updated_at":"2016-09-20T16:02:46Z","closed_at":"2016-09-20T16:02:46Z","merged_at":"2016-09-20T16:02:46Z","merge_commit_sha":"2328030804551aa37556185a08f99f392148c454","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aschuch/AwesomeCache/pulls/87/commits","review_comments_url":"https://api.github.com/repos/aschuch/AwesomeCache/pulls/87/comments","review_comment_url":"https://api.github.com/repos/aschuch/AwesomeCache/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aschuch/AwesomeCache/issues/87/comments","statuses_url":"https://api.github.com/repos/aschuch/AwesomeCache/statuses/46ca50682c44be582e4918c53d496d2c19799147","head":{"label":"notohiro:master","ref":"master","sha":"46ca50682c44be582e4918c53d496d2c19799147","user":{"login":"notohiro","id":3214999,"avatar_url":"https://avatars.githubusercontent.com/u/3214999?v=3","gravatar_id":"","url":"https://api.github.com/users/notohiro","html_url":"https://github.com/notohiro","followers_url":"https://api.github.com/users/notohiro/followers","following_url":"https://api.github.com/users/notohiro/following{/other_user}","gists_url":"https://api.github.com/users/notohiro/gists{/gist_id}","starred_url":"https://api.github.com/users/notohiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notohiro/subscriptions","organizations_url":"https://api.github.com/users/notohiro/orgs","repos_url":"https://api.github.com/users/notohiro/repos","events_url":"https://api.github.com/users/notohiro/events{/privacy}","received_events_url":"https://api.github.com/users/notohiro/received_events","type":"User","site_admin":false},"repo":{"id":68701334,"name":"AwesomeCache","full_name":"notohiro/AwesomeCache","owner":{"login":"notohiro","id":3214999,"avatar_url":"https://avatars.githubusercontent.com/u/3214999?v=3","gravatar_id":"","url":"https://api.github.com/users/notohiro","html_url":"https://github.com/notohiro","followers_url":"https://api.github.com/users/notohiro/followers","following_url":"https://api.github.com/users/notohiro/following{/other_user}","gists_url":"https://api.github.com/users/notohiro/gists{/gist_id}","starred_url":"https://api.github.com/users/notohiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notohiro/subscriptions","organizations_url":"https://api.github.com/users/notohiro/orgs","repos_url":"https://api.github.com/users/notohiro/repos","events_url":"https://api.github.com/users/notohiro/events{/privacy}","received_events_url":"https://api.github.com/users/notohiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/notohiro/AwesomeCache","description":"Delightful on-disk cache (written in Swift)","fork":true,"url":"https://api.github.com/repos/notohiro/AwesomeCache","forks_url":"https://api.github.com/repos/notohiro/AwesomeCache/forks","keys_url":"https://api.github.com/repos/notohiro/AwesomeCache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/notohiro/AwesomeCache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/notohiro/AwesomeCache/teams","hooks_url":"https://api.github.com/repos/notohiro/AwesomeCache/hooks","issue_events_url":"https://api.github.com/repos/notohiro/AwesomeCache/issues/events{/number}","events_url":"https://api.github.com/repos/notohiro/AwesomeCache/events","assignees_url":"https://api.github.com/repos/notohiro/AwesomeCache/assignees{/user}","branches_url":"https://api.github.com/repos/notohiro/AwesomeCache/branches{/branch}","tags_url":"https://api.github.com/repos/notohiro/AwesomeCache/tags","blobs_url":"https://api.github.com/repos/notohiro/AwesomeCache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/notohiro/AwesomeCache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/notohiro/AwesomeCache/git/refs{/sha}","trees_url":"https://api.github.com/repos/notohiro/AwesomeCache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/notohiro/AwesomeCache/statuses/{sha}","languages_url":"https://api.github.com/repos/notohiro/AwesomeCache/languages","stargazers_url":"https://api.github.com/repos/notohiro/AwesomeCache/stargazers","contributors_url":"https://api.github.com/repos/notohiro/AwesomeCache/contributors","subscribers_url":"https://api.github.com/repos/notohiro/AwesomeCache/subscribers","subscription_url":"https://api.github.com/repos/notohiro/AwesomeCache/subscription","commits_url":"https://api.github.com/repos/notohiro/AwesomeCache/commits{/sha}","git_commits_url":"https://api.github.com/repos/notohiro/AwesomeCache/git/commits{/sha}","comments_url":"https://api.github.com/repos/notohiro/AwesomeCache/comments{/number}","issue_comment_url":"https://api.github.com/repos/notohiro/AwesomeCache/issues/comments{/number}","contents_url":"https://api.github.com/repos/notohiro/AwesomeCache/contents/{+path}","compare_url":"https://api.github.com/repos/notohiro/AwesomeCache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/notohiro/AwesomeCache/merges","archive_url":"https://api.github.com/repos/notohiro/AwesomeCache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/notohiro/AwesomeCache/downloads","issues_url":"https://api.github.com/repos/notohiro/AwesomeCache/issues{/number}","pulls_url":"https://api.github.com/repos/notohiro/AwesomeCache/pulls{/number}","milestones_url":"https://api.github.com/repos/notohiro/AwesomeCache/milestones{/number}","notifications_url":"https://api.github.com/repos/notohiro/AwesomeCache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/notohiro/AwesomeCache/labels{/name}","releases_url":"https://api.github.com/repos/notohiro/AwesomeCache/releases{/id}","deployments_url":"https://api.github.com/repos/notohiro/AwesomeCache/deployments","created_at":"2016-09-20T10:33:30Z","updated_at":"2016-09-20T10:33:31Z","pushed_at":"2016-09-20T10:59:55Z","git_url":"git://github.com/notohiro/AwesomeCache.git","ssh_url":"git@github.com:notohiro/AwesomeCache.git","clone_url":"https://github.com/notohiro/AwesomeCache.git","svn_url":"https://github.com/notohiro/AwesomeCache","homepage":"","size":143,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"aschuch:master","ref":"master","sha":"c25971afa4462bb25c14fe94771b717b647bfc0c","user":{"login":"aschuch","id":1506193,"avatar_url":"https://avatars.githubusercontent.com/u/1506193?v=3","gravatar_id":"","url":"https://api.github.com/users/aschuch","html_url":"https://github.com/aschuch","followers_url":"https://api.github.com/users/aschuch/followers","following_url":"https://api.github.com/users/aschuch/following{/other_user}","gists_url":"https://api.github.com/users/aschuch/gists{/gist_id}","starred_url":"https://api.github.com/users/aschuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschuch/subscriptions","organizations_url":"https://api.github.com/users/aschuch/orgs","repos_url":"https://api.github.com/users/aschuch/repos","events_url":"https://api.github.com/users/aschuch/events{/privacy}","received_events_url":"https://api.github.com/users/aschuch/received_events","type":"User","site_admin":false},"repo":{"id":21776379,"name":"AwesomeCache","full_name":"aschuch/AwesomeCache","owner":{"login":"aschuch","id":1506193,"avatar_url":"https://avatars.githubusercontent.com/u/1506193?v=3","gravatar_id":"","url":"https://api.github.com/users/aschuch","html_url":"https://github.com/aschuch","followers_url":"https://api.github.com/users/aschuch/followers","following_url":"https://api.github.com/users/aschuch/following{/other_user}","gists_url":"https://api.github.com/users/aschuch/gists{/gist_id}","starred_url":"https://api.github.com/users/aschuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschuch/subscriptions","organizations_url":"https://api.github.com/users/aschuch/orgs","repos_url":"https://api.github.com/users/aschuch/repos","events_url":"https://api.github.com/users/aschuch/events{/privacy}","received_events_url":"https://api.github.com/users/aschuch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aschuch/AwesomeCache","description":"Delightful on-disk cache (written in Swift)","fork":false,"url":"https://api.github.com/repos/aschuch/AwesomeCache","forks_url":"https://api.github.com/repos/aschuch/AwesomeCache/forks","keys_url":"https://api.github.com/repos/aschuch/AwesomeCache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aschuch/AwesomeCache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aschuch/AwesomeCache/teams","hooks_url":"https://api.github.com/repos/aschuch/AwesomeCache/hooks","issue_events_url":"https://api.github.com/repos/aschuch/AwesomeCache/issues/events{/number}","events_url":"https://api.github.com/repos/aschuch/AwesomeCache/events","assignees_url":"https://api.github.com/repos/aschuch/AwesomeCache/assignees{/user}","branches_url":"https://api.github.com/repos/aschuch/AwesomeCache/branches{/branch}","tags_url":"https://api.github.com/repos/aschuch/AwesomeCache/tags","blobs_url":"https://api.github.com/repos/aschuch/AwesomeCache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aschuch/AwesomeCache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aschuch/AwesomeCache/git/refs{/sha}","trees_url":"https://api.github.com/repos/aschuch/AwesomeCache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aschuch/AwesomeCache/statuses/{sha}","languages_url":"https://api.github.com/repos/aschuch/AwesomeCache/languages","stargazers_url":"https://api.github.com/repos/aschuch/AwesomeCache/stargazers","contributors_url":"https://api.github.com/repos/aschuch/AwesomeCache/contributors","subscribers_url":"https://api.github.com/repos/aschuch/AwesomeCache/subscribers","subscription_url":"https://api.github.com/repos/aschuch/AwesomeCache/subscription","commits_url":"https://api.github.com/repos/aschuch/AwesomeCache/commits{/sha}","git_commits_url":"https://api.github.com/repos/aschuch/AwesomeCache/git/commits{/sha}","comments_url":"https://api.github.com/repos/aschuch/AwesomeCache/comments{/number}","issue_comment_url":"https://api.github.com/repos/aschuch/AwesomeCache/issues/comments{/number}","contents_url":"https://api.github.com/repos/aschuch/AwesomeCache/contents/{+path}","compare_url":"https://api.github.com/repos/aschuch/AwesomeCache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aschuch/AwesomeCache/merges","archive_url":"https://api.github.com/repos/aschuch/AwesomeCache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aschuch/AwesomeCache/downloads","issues_url":"https://api.github.com/repos/aschuch/AwesomeCache/issues{/number}","pulls_url":"https://api.github.com/repos/aschuch/AwesomeCache/pulls{/number}","milestones_url":"https://api.github.com/repos/aschuch/AwesomeCache/milestones{/number}","notifications_url":"https://api.github.com/repos/aschuch/AwesomeCache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aschuch/AwesomeCache/labels{/name}","releases_url":"https://api.github.com/repos/aschuch/AwesomeCache/releases{/id}","deployments_url":"https://api.github.com/repos/aschuch/AwesomeCache/deployments","created_at":"2014-07-12T20:56:08Z","updated_at":"2016-09-20T14:39:10Z","pushed_at":"2016-09-20T16:02:46Z","git_url":"git://github.com/aschuch/AwesomeCache.git","ssh_url":"git@github.com:aschuch/AwesomeCache.git","clone_url":"https://github.com/aschuch/AwesomeCache.git","svn_url":"https://github.com/aschuch/AwesomeCache","homepage":"","size":216,"stargazers_count":856,"watchers_count":856,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":86,"mirror_url":null,"open_issues_count":20,"forks":86,"open_issues":20,"watchers":856,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aschuch/AwesomeCache/pulls/87"},"html":{"href":"https://github.com/aschuch/AwesomeCache/pull/87"},"issue":{"href":"https://api.github.com/repos/aschuch/AwesomeCache/issues/87"},"comments":{"href":"https://api.github.com/repos/aschuch/AwesomeCache/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/aschuch/AwesomeCache/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/aschuch/AwesomeCache/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aschuch/AwesomeCache/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/aschuch/AwesomeCache/statuses/46ca50682c44be582e4918c53d496d2c19799147"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"aschuch","id":1506193,"avatar_url":"https://avatars.githubusercontent.com/u/1506193?v=3","gravatar_id":"","url":"https://api.github.com/users/aschuch","html_url":"https://github.com/aschuch","followers_url":"https://api.github.com/users/aschuch/followers","following_url":"https://api.github.com/users/aschuch/following{/other_user}","gists_url":"https://api.github.com/users/aschuch/gists{/gist_id}","starred_url":"https://api.github.com/users/aschuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschuch/subscriptions","organizations_url":"https://api.github.com/users/aschuch/orgs","repos_url":"https://api.github.com/users/aschuch/repos","events_url":"https://api.github.com/users/aschuch/events{/privacy}","received_events_url":"https://api.github.com/users/aschuch/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"aschuch"}}