{"action":"created","issue":{"url":"https://api.github.com/repos/zackehh/cachex/issues/7","repository_url":"https://api.github.com/repos/zackehh/cachex","labels_url":"https://api.github.com/repos/zackehh/cachex/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/zackehh/cachex/issues/7/comments","events_url":"https://api.github.com/repos/zackehh/cachex/issues/7/events","html_url":"https://github.com/zackehh/cachex/pull/7","id":147243645,"number":7,"title":"Begin refactoring of Stats to store all results","user":{"login":"zackehh","id":5376378,"avatar_url":"https://avatars.githubusercontent.com/u/5376378?v=3","gravatar_id":"","url":"https://api.github.com/users/zackehh","html_url":"https://github.com/zackehh","followers_url":"https://api.github.com/users/zackehh/followers","following_url":"https://api.github.com/users/zackehh/following{/other_user}","gists_url":"https://api.github.com/users/zackehh/gists{/gist_id}","starred_url":"https://api.github.com/users/zackehh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zackehh/subscriptions","organizations_url":"https://api.github.com/users/zackehh/orgs","repos_url":"https://api.github.com/users/zackehh/repos","events_url":"https://api.github.com/users/zackehh/events{/privacy}","received_events_url":"https://api.github.com/users/zackehh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-10T17:32:18Z","updated_at":"2016-04-10T17:34:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zackehh/cachex/pulls/7","html_url":"https://github.com/zackehh/cachex/pull/7","diff_url":"https://github.com/zackehh/cachex/pull/7.diff","patch_url":"https://github.com/zackehh/cachex/pull/7.patch"},"body":"This is the initial implementation of #5 which will ensure better consistency and accuracy inside the statistics gathering - it also has the knock-on effect of improving the accuracy of the hook system notifications in general.\r\n\r\nThis PR introduces the new `for` option with stat: `Cachex.stats(:my_cache, for: :get)`. This allows the retrieval of extremely raw values on an action level. The default is to still provide what we do now.\r\n\r\nNaturally there's a bigger memory overhead to this because we're storing more data, and the retrieval will take a little bit longer if you're grabbing the current implementation (because it's calculated on-demand). I think these are perfectly fine and expected."},"comment":{"url":"https://api.github.com/repos/zackehh/cachex/issues/comments/208023114","html_url":"https://github.com/zackehh/cachex/pull/7#issuecomment-208023114","issue_url":"https://api.github.com/repos/zackehh/cachex/issues/7","id":208023114,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T17:34:40Z","updated_at":"2016-04-10T17:34:40Z","body":"\n[![Coverage Status](https://coveralls.io/builds/5731210/badge)](https://coveralls.io/builds/5731210)\n\nCoverage increased (+0.4%) to 100.0% when pulling **6c69239e9dcd14c4d1011d39e2745c8976a97da7 on issue-5** into **545daf389938a70ace6cd2f5f066445752c8aac8 on master**.\n"}}