{"action":"created","issue":{"url":"https://api.github.com/repos/php-cache/issues/issues/79","repository_url":"https://api.github.com/repos/php-cache/issues","labels_url":"https://api.github.com/repos/php-cache/issues/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/php-cache/issues/issues/79/comments","events_url":"https://api.github.com/repos/php-cache/issues/issues/79/events","html_url":"https://github.com/php-cache/issues/issues/79","id":185424351,"number":79,"title":"symfony/adapter-bundle pool_namespace support?","user":{"login":"bendavies","id":625392,"avatar_url":"https://avatars0.githubusercontent.com/u/625392?v=3","gravatar_id":"","url":"https://api.github.com/users/bendavies","html_url":"https://github.com/bendavies","followers_url":"https://api.github.com/users/bendavies/followers","following_url":"https://api.github.com/users/bendavies/following{/other_user}","gists_url":"https://api.github.com/users/bendavies/gists{/gist_id}","starred_url":"https://api.github.com/users/bendavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendavies/subscriptions","organizations_url":"https://api.github.com/users/bendavies/orgs","repos_url":"https://api.github.com/users/bendavies/repos","events_url":"https://api.github.com/users/bendavies/events{/privacy}","received_events_url":"https://api.github.com/users/bendavies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-26T15:16:15Z","updated_at":"2017-03-28T16:07:42Z","closed_at":null,"body":"Hey,\n\nI'd like to use different namespaces for each of my caches, as the cache key can colide.\nExample:\n\n```\ncache_adapter:\n  providers:\n    customer_foo_cache:\n      factory: 'cache.factory.doctrine_filesystem'\n      options:\n       directory: '%kernel.cache_dir%/cache'\n    customer_bar_cache:\n      factory: 'cache.factory.doctrine_filesystem'\n      options:\n       directory: '%kernel.cache_dir%/cache'\n```\n\nIf i am caching `Foo` and `Bar` values for my customer, i'd like to just use the customer's ID as the cache key, but ofcourse that won't work as it'll collide between caches.\n\nCan we either add `NamespacedCachePool` support to all cache adapters, or alternatively, enable configuring the `namespace` option for doctine adapters? obviously the former is more desirable.\n\nLet me know if i'm missing anything obvious.\n\nThanks\n"},"comment":{"url":"https://api.github.com/repos/php-cache/issues/issues/comments/289820277","html_url":"https://github.com/php-cache/issues/issues/79#issuecomment-289820277","issue_url":"https://api.github.com/repos/php-cache/issues/issues/79","id":289820277,"user":{"login":"Nyholm","id":1275206,"avatar_url":"https://avatars1.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},"created_at":"2017-03-28T16:07:42Z","updated_at":"2017-03-28T16:07:42Z","body":"For your use case you may want to look at PrefixCache. But that would be an issue when you clearing cache: http://www.php-cache.com/en/latest/#prefix\r\n"}}
{"actor":{"display_login":"Nyholm"}}