get() public method

Loads data from the cache.
public get ( string $entryIdentifier ) : mixed
$entryIdentifier string An identifier which describes the cache entry to load
return mixed The cache entry's content as a string or FALSE if the cache entry could not be loaded
 /**
  * @test
  */
 public function itIsPossibleToOverwriteAnEntryInTheCache()
 {
     $cache = $this->createMock(FrontendInterface::class);
     $backend = new TransientMemoryBackend($this->getEnvironmentConfiguration());
     $backend->setCache($cache);
     $data = 'Some data';
     $identifier = 'MyIdentifier';
     $backend->set($identifier, $data);
     $otherData = 'some other data';
     $backend->set($identifier, $otherData);
     $fetchedData = $backend->get($identifier);
     $this->assertEquals($otherData, $fetchedData);
 }