setCache() public method

Initializes the identifier prefix when setting the cache.
public setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void
$cache Neos\Cache\Frontend\FrontendInterface
return void
 /**
  * Sets up the APC backend used for testing
  *
  * @return ApcBackend
  */
 protected function setUpBackend()
 {
     $cache = $this->createMock(FrontendInterface::class);
     $backend = new ApcBackend($this->getEnvironmentConfiguration(), []);
     $backend->setCache($cache);
     return $backend;
 }