{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls/4","id":40264070,"html_url":"https://github.com/hidetosaito/qa-sample-service/pull/4","diff_url":"https://github.com/hidetosaito/qa-sample-service/pull/4.diff","patch_url":"https://github.com/hidetosaito/qa-sample-service/pull/4.patch","issue_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues/4","number":4,"state":"open","locked":false,"title":"add cache implementation","user":{"login":"hidetosaito","id":7177650,"avatar_url":"https://avatars.githubusercontent.com/u/7177650?v=3","gravatar_id":"","url":"https://api.github.com/users/hidetosaito","html_url":"https://github.com/hidetosaito","followers_url":"https://api.github.com/users/hidetosaito/followers","following_url":"https://api.github.com/users/hidetosaito/following{/other_user}","gists_url":"https://api.github.com/users/hidetosaito/gists{/gist_id}","starred_url":"https://api.github.com/users/hidetosaito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidetosaito/subscriptions","organizations_url":"https://api.github.com/users/hidetosaito/orgs","repos_url":"https://api.github.com/users/hidetosaito/repos","events_url":"https://api.github.com/users/hidetosaito/events{/privacy}","received_events_url":"https://api.github.com/users/hidetosaito/received_events","type":"User","site_admin":false},"body":"Hi @msfuko \r\n\r\ni'd like to adopt Flask Cache (https://pythonhosted.org/Flask-Cache/) into this Reference Implementation. for the *DevelopmentConfig* and *TestConfig* it uses Simple(on-memory cache), for the *ProductionConfig* it uses memcached (not confirmed yet, redis also fine; as long as AWS ElastiCache supports)\r\n\r\nI believe it would help to reduce DynamoDB query and improve the response throughput, please take a look.\r\n\r\nBy the way, originally i tried to use decorator  (@current_app.cache.cached) on criteria methods, however it raise an exception *RuntimeError: working outside of application context* due to inside of Blueprint, i referred to your unit testing to solve similar issue, but i just use programatic way :-p","created_at":"2015-07-17T19:33:19Z","updated_at":"2015-07-17T19:33:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls/4/commits","review_comments_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls/4/comments","review_comment_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues/4/comments","statuses_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/statuses/342cb7db03dd42149fa7f8d10321f4585ff4b57b","head":{"label":"hidetosaito:cache","ref":"cache","sha":"342cb7db03dd42149fa7f8d10321f4585ff4b57b","user":{"login":"hidetosaito","id":7177650,"avatar_url":"https://avatars.githubusercontent.com/u/7177650?v=3","gravatar_id":"","url":"https://api.github.com/users/hidetosaito","html_url":"https://github.com/hidetosaito","followers_url":"https://api.github.com/users/hidetosaito/followers","following_url":"https://api.github.com/users/hidetosaito/following{/other_user}","gists_url":"https://api.github.com/users/hidetosaito/gists{/gist_id}","starred_url":"https://api.github.com/users/hidetosaito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidetosaito/subscriptions","organizations_url":"https://api.github.com/users/hidetosaito/orgs","repos_url":"https://api.github.com/users/hidetosaito/repos","events_url":"https://api.github.com/users/hidetosaito/events{/privacy}","received_events_url":"https://api.github.com/users/hidetosaito/received_events","type":"User","site_admin":false},"repo":{"id":38911962,"name":"qa-sample-service","full_name":"hidetosaito/qa-sample-service","owner":{"login":"hidetosaito","id":7177650,"avatar_url":"https://avatars.githubusercontent.com/u/7177650?v=3","gravatar_id":"","url":"https://api.github.com/users/hidetosaito","html_url":"https://github.com/hidetosaito","followers_url":"https://api.github.com/users/hidetosaito/followers","following_url":"https://api.github.com/users/hidetosaito/following{/other_user}","gists_url":"https://api.github.com/users/hidetosaito/gists{/gist_id}","starred_url":"https://api.github.com/users/hidetosaito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidetosaito/subscriptions","organizations_url":"https://api.github.com/users/hidetosaito/orgs","repos_url":"https://api.github.com/users/hidetosaito/repos","events_url":"https://api.github.com/users/hidetosaito/events{/privacy}","received_events_url":"https://api.github.com/users/hidetosaito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hidetosaito/qa-sample-service","description":"","fork":false,"url":"https://api.github.com/repos/hidetosaito/qa-sample-service","forks_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/forks","keys_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/teams","hooks_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/hooks","issue_events_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues/events{/number}","events_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/events","assignees_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/assignees{/user}","branches_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/branches{/branch}","tags_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/tags","blobs_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/statuses/{sha}","languages_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/languages","stargazers_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/stargazers","contributors_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/contributors","subscribers_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/subscribers","subscription_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/subscription","commits_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/contents/{+path}","compare_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/merges","archive_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/downloads","issues_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues{/number}","pulls_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls{/number}","milestones_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/milestones{/number}","notifications_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/labels{/name}","releases_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/releases{/id}","created_at":"2015-07-11T03:18:33Z","updated_at":"2015-07-11T03:18:59Z","pushed_at":"2015-07-17T19:23:38Z","git_url":"git://github.com/hidetosaito/qa-sample-service.git","ssh_url":"git@github.com:hidetosaito/qa-sample-service.git","clone_url":"https://github.com/hidetosaito/qa-sample-service.git","svn_url":"https://github.com/hidetosaito/qa-sample-service","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hidetosaito:master","ref":"master","sha":"1b3fcb928a7a06ebb6fa37ded494c051ec65a3ba","user":{"login":"hidetosaito","id":7177650,"avatar_url":"https://avatars.githubusercontent.com/u/7177650?v=3","gravatar_id":"","url":"https://api.github.com/users/hidetosaito","html_url":"https://github.com/hidetosaito","followers_url":"https://api.github.com/users/hidetosaito/followers","following_url":"https://api.github.com/users/hidetosaito/following{/other_user}","gists_url":"https://api.github.com/users/hidetosaito/gists{/gist_id}","starred_url":"https://api.github.com/users/hidetosaito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidetosaito/subscriptions","organizations_url":"https://api.github.com/users/hidetosaito/orgs","repos_url":"https://api.github.com/users/hidetosaito/repos","events_url":"https://api.github.com/users/hidetosaito/events{/privacy}","received_events_url":"https://api.github.com/users/hidetosaito/received_events","type":"User","site_admin":false},"repo":{"id":38911962,"name":"qa-sample-service","full_name":"hidetosaito/qa-sample-service","owner":{"login":"hidetosaito","id":7177650,"avatar_url":"https://avatars.githubusercontent.com/u/7177650?v=3","gravatar_id":"","url":"https://api.github.com/users/hidetosaito","html_url":"https://github.com/hidetosaito","followers_url":"https://api.github.com/users/hidetosaito/followers","following_url":"https://api.github.com/users/hidetosaito/following{/other_user}","gists_url":"https://api.github.com/users/hidetosaito/gists{/gist_id}","starred_url":"https://api.github.com/users/hidetosaito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidetosaito/subscriptions","organizations_url":"https://api.github.com/users/hidetosaito/orgs","repos_url":"https://api.github.com/users/hidetosaito/repos","events_url":"https://api.github.com/users/hidetosaito/events{/privacy}","received_events_url":"https://api.github.com/users/hidetosaito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hidetosaito/qa-sample-service","description":"","fork":false,"url":"https://api.github.com/repos/hidetosaito/qa-sample-service","forks_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/forks","keys_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/teams","hooks_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/hooks","issue_events_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues/events{/number}","events_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/events","assignees_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/assignees{/user}","branches_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/branches{/branch}","tags_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/tags","blobs_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/statuses/{sha}","languages_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/languages","stargazers_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/stargazers","contributors_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/contributors","subscribers_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/subscribers","subscription_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/subscription","commits_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/contents/{+path}","compare_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/merges","archive_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/downloads","issues_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues{/number}","pulls_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls{/number}","milestones_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/milestones{/number}","notifications_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/labels{/name}","releases_url":"https://api.github.com/repos/hidetosaito/qa-sample-service/releases{/id}","created_at":"2015-07-11T03:18:33Z","updated_at":"2015-07-11T03:18:59Z","pushed_at":"2015-07-17T19:23:38Z","git_url":"git://github.com/hidetosaito/qa-sample-service.git","ssh_url":"git@github.com:hidetosaito/qa-sample-service.git","clone_url":"https://github.com/hidetosaito/qa-sample-service.git","svn_url":"https://github.com/hidetosaito/qa-sample-service","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls/4"},"html":{"href":"https://github.com/hidetosaito/qa-sample-service/pull/4"},"issue":{"href":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues/4"},"comments":{"href":"https://api.github.com/repos/hidetosaito/qa-sample-service/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hidetosaito/qa-sample-service/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/hidetosaito/qa-sample-service/statuses/342cb7db03dd42149fa7f8d10321f4585ff4b57b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":39,"deletions":4,"changed_files":4}}