/**
* Constructor
*
* @param CacheProvider $cache
*/
public function __construct(CacheProvider $cache = null)
{
$this->cache = $cache;
if ($this->cache !== null && $this->cache->getNamespace() === '') {
$this->cache->setNamespace(self::CACHE_NAMESPACE);
}
}