Airship\Engine\Cache\File::get PHP Méthode

get() public méthode

Get a cache entry
public get ( string $key ) : null | mixed
$key string
Résultat null | mixed
    public function get(string $key)
    {
        $path = $this->getRelativePath($key);
        /** @noinspection PhpUsageOfSilenceOperatorInspection */
        if (@\is_readable($path)) {
            return \json_decode(\file_get_contents($path), true);
        }
        // NULL means nothing was found
        return null;
    }