Allow to pass a cache instance to the cache.namespace factory