Neos\Cache\Frontend\StringFrontend::get PHP Method

get() public method

Finds and returns a variable value from the cache.
public get ( string $entryIdentifier ) : string
$entryIdentifier string Identifier of the cache entry to fetch
return string The value
    public function get($entryIdentifier)
    {
        if (!$this->isValidEntryIdentifier($entryIdentifier)) {
            throw new \InvalidArgumentException('"' . $entryIdentifier . '" is not a valid cache entry identifier.', 1233057752);
        }
        return $this->backend->get($entryIdentifier);
    }

Usage Example

 /**
  * @return string The current cache version identifier
  */
 public function render()
 {
     $version = $this->configurationCache->get('ConfigurationVersion');
     if ($version === false) {
         $version = time();
         $this->configurationCache->set('ConfigurationVersion', (string) $version);
     }
     return $version;
 }
All Usage Examples Of Neos\Cache\Frontend\StringFrontend::get