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 memcached backend used for testing
  *
  * @param array $backendOptions Options for the memcache backend
  * @return MemcachedBackend
  */
 protected function setUpBackend(array $backendOptions = [])
 {
     $cache = $this->createMock(FrontendInterface::class, [], [], '', false);
     if ($backendOptions == []) {
         $backendOptions = ['servers' => ['localhost:11211']];
     }
     $backend = new MemcachedBackend($this->getEnvironmentConfiguration(), $backendOptions);
     $backend->setCache($cache);
     return $backend;
 }