Storm\Utilities\Cache\MemoryCache::Retrieve PHP Метод

Retrieve() публичный Метод

public Retrieve ( $Key )
    public function Retrieve($Key)
    {
        if (!isset($this->Cache[$Key])) {
            return null;
        }
        $CachedValue = $this->Cache[$Key];
        if ($this->IsExpired($CachedValue[self::ExpiryKey])) {
            $this->Delete($Key);
            return null;
        }
        return $CachedValue[self::ValueKey];
    }