set() public method

Saves data in the cache.
public set ( string $entryIdentifier, string $data, array $tags = [], integer $lifetime = null ) : void
$entryIdentifier string An identifier for this specific cache entry
$data string The data to be stored
$tags array Tags to associate with this cache entry
$lifetime integer Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime.
return void
 /**
  * @test
  * @expectedException \Neos\Cache\Exception
  */
 public function setThrowsExceptionIfNoFrontEndHasBeenSet()
 {
     $backend = new PdoBackend(new EnvironmentConfiguration('SomeApplication Testing', '/some/path', PHP_MAXPATHLEN));
     $data = 'Some data';
     $identifier = 'MyIdentifier';
     $backend->set($identifier, $data);
 }