{"action":"opened","issue":{"url":"https://api.github.com/repos/doctrine/cache/issues/285","repository_url":"https://api.github.com/repos/doctrine/cache","labels_url":"https://api.github.com/repos/doctrine/cache/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/cache/issues/285/comments","events_url":"https://api.github.com/repos/doctrine/cache/issues/285/events","html_url":"https://github.com/doctrine/cache/issues/285","id":376159384,"node_id":"MDU6SXNzdWUzNzYxNTkzODQ=","number":285,"title":"[Cache] Move namespacing functionality into a \"CacheNamespace\" class","user":{"login":"CHH","id":16783,"node_id":"MDQ6VXNlcjE2Nzgz","avatar_url":"https://avatars1.githubusercontent.com/u/16783?v=4","gravatar_id":"","url":"https://api.github.com/users/CHH","html_url":"https://github.com/CHH","followers_url":"https://api.github.com/users/CHH/followers","following_url":"https://api.github.com/users/CHH/following{/other_user}","gists_url":"https://api.github.com/users/CHH/gists{/gist_id}","starred_url":"https://api.github.com/users/CHH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CHH/subscriptions","organizations_url":"https://api.github.com/users/CHH/orgs","repos_url":"https://api.github.com/users/CHH/repos","events_url":"https://api.github.com/users/CHH/events{/privacy}","received_events_url":"https://api.github.com/users/CHH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-31T21:03:26Z","updated_at":"2018-10-31T21:03:26Z","closed_at":null,"author_association":"NONE","body":"Would be cool if the cache namespacing feature would be available via its own class, which wraps a `\\Doctrine\\Common\\Cache\\Cache`, and prefixes all keys just like `CacheProvider` does it.\n\nThis way also classes which don't extend from `CacheProvider` and only implement `Cache` are usable with cache namespaces.\n\nExample Usage:\n\n``` php\n<?php\n\nuse Doctrine\\Common\\Cache\\CacheNamespace;\nuse Doctrine\\Common\\Cache\\ApcCache;\n\n$apc = new ApcCache;\n$namespace = new CacheNamespace(\"foo\", $apc);\n\n# Namespaces the key \"foo\" inside the cache\n$namespace->save(\"foo\", \"bar\");\n```\n"}}
{"actor":{"display_login":"CHH"}}