{"action":"created","issue":{"url":"https://api.github.com/repos/php-cache/cache/issues/32","repository_url":"https://api.github.com/repos/php-cache/cache","labels_url":"https://api.github.com/repos/php-cache/cache/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/php-cache/cache/issues/32/comments","events_url":"https://api.github.com/repos/php-cache/cache/issues/32/events","html_url":"https://github.com/php-cache/cache/pull/32","id":131951123,"number":32,"title":"Making cache tags more efficient by rewriting the API.","user":{"login":"Nyholm","id":1275206,"avatar_url":"https://avatars.githubusercontent.com/u/1275206?v=3","gravatar_id":"","url":"https://api.github.com/users/Nyholm","html_url":"https://github.com/Nyholm","followers_url":"https://api.github.com/users/Nyholm/followers","following_url":"https://api.github.com/users/Nyholm/following{/other_user}","gists_url":"https://api.github.com/users/Nyholm/gists{/gist_id}","starred_url":"https://api.github.com/users/Nyholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nyholm/subscriptions","organizations_url":"https://api.github.com/users/Nyholm/orgs","repos_url":"https://api.github.com/users/Nyholm/repos","events_url":"https://api.github.com/users/Nyholm/events{/privacy}","received_events_url":"https://api.github.com/users/Nyholm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-07T09:04:17Z","updated_at":"2016-02-25T17:46:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/php-cache/cache/pulls/32","html_url":"https://github.com/php-cache/cache/pull/32","diff_url":"https://github.com/php-cache/cache/pull/32.diff","patch_url":"https://github.com/php-cache/cache/pull/32.patch"},"body":"I've started with the tagging, common and the redis adapter. Is this a path we want to follow?\r\n\r\nThe new API will look like this: \r\n```php\r\n$item = $pool->getItem('article_40');\r\n$item->set($post);\r\n$item->setTags(['author_10', 'category_php']);\r\n$pool->save($item);\r\n\r\n// Someone requests that post\r\n$item = $pool->getItem('article_40');\r\n\r\n// I want to clear all post by author\r\n$pool->clearTags(['author_10']);\r\n```\r\n\r\nPing @aequasi and @andrerom. What are your thoughts?\r\n\r\nRelated to https://github.com/php-cache/issues/issues/21\r\n\r\nTODO: \r\n* [x] Update the integration tests\r\n* [x] Rewrite other adapters\r\n* [ ] Update documentation"},"comment":{"url":"https://api.github.com/repos/php-cache/cache/issues/comments/188900257","html_url":"https://github.com/php-cache/cache/pull/32#issuecomment-188900257","issue_url":"https://api.github.com/repos/php-cache/cache/issues/32","id":188900257,"user":{"login":"aequasi","id":896295,"avatar_url":"https://avatars.githubusercontent.com/u/896295?v=3","gravatar_id":"","url":"https://api.github.com/users/aequasi","html_url":"https://github.com/aequasi","followers_url":"https://api.github.com/users/aequasi/followers","following_url":"https://api.github.com/users/aequasi/following{/other_user}","gists_url":"https://api.github.com/users/aequasi/gists{/gist_id}","starred_url":"https://api.github.com/users/aequasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aequasi/subscriptions","organizations_url":"https://api.github.com/users/aequasi/orgs","repos_url":"https://api.github.com/users/aequasi/repos","events_url":"https://api.github.com/users/aequasi/events{/privacy}","received_events_url":"https://api.github.com/users/aequasi/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T17:46:27Z","updated_at":"2016-02-25T17:46:27Z","body":":+1: Looks far cleaner"}}