{"issue":{"created_at":"2011-12-05T23:20:19Z","state":"closed","updated_at":"2011-12-07T01:38:54Z","comments":5,"user":{"gravatar_id":"8cf35daccc7db01402d59d965fdac8d8","id":574333,"url":"https://api.github.com/users/Perlover","login":"Perlover","avatar_url":"https://secure.gravatar.com/avatar/8cf35daccc7db01402d59d965fdac8d8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Good day!\r\n\r\nI noticed now your example (at below)\r\nI didn't find an opportunity to change a namespace of CHI other than to setup namespace in constructor of CHI\r\nAnd your example will not work as i think - it only sets up a 'namespace' hash item in Dancer config for your plugin, no more\r\nAs you think? I think there no an opportunity to change namespace. And i cannot create some instances of CHI caches from your plugin :(\r\n\r\nYour example:\r\n\r\nbefore_create_cache\r\n\r\nCalled before the creation of the cache, which is lazily done upon its first use.\r\n\r\nUseful, for example, to change the cache's configuration at run time:\r\nuse Sys::Hostname;\r\n \r\n # set the namespace to the current hostname\r\n hook before_create_cache => sub {\r\n  config->{plugins}{'Cache::CHI'}{namespace} = hostname;\r\n };","assignee":null,"id":2456182,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":8,"title":"A namespace for some sites in Dancer","html_url":"https://github.com/yanick/Dancer-Plugin-Cache-CHI/issues/8","closed_at":"2011-12-07T01:38:54Z","url":"https://api.github.com/repos/yanick/Dancer-Plugin-Cache-CHI/issues/8","milestone":null},"action":"created","comment":{"created_at":"2011-12-07T01:38:54Z","updated_at":"2011-12-07T01:38:54Z","user":{"gravatar_id":"8afa39c7859ef8d183bb8928c8c54dc3","id":19954,"url":"https://api.github.com/users/yanick","login":"yanick","avatar_url":"https://secure.gravatar.com/avatar/8afa39c7859ef8d183bb8928c8c54dc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I like it. Merged, and new release on its way to CPAN. Thanks! :-)","id":3041972,"url":"https://api.github.com/repos/yanick/Dancer-Plugin-Cache-CHI/issues/comments/3041972"}}