vault/classes/Maikuolan/Cache.php
public function getEntry($Entry)
    {
        if ($this->Using === 'APCu') {
            return $this->unserializeEntry(apcu_fetch($Entry));
        }
        if ($this->Using === 'Memcached' || $this->Using === 'Redis') {
            return $this->unserializeEntry($this->WorkingData->get($Entry));
        }
        if ($this->Using === 'PDO') {
            if ($this->clearExpiredPDO()) {
                $this->Modified = true;
            }
            $PDO = $this->WorkingData->prepare(self::getQuery);
            if ($PDO !== false && $PDO->execute(['key' => $Entry])) {
                $Data = $PDO->fetch(\PDO::FETCH_ASSOC);
                return isset($Data['Data']) ? $this->unserializeEntry($Data['Data']) : false;
            }
            return false;
        }
        if (is_array($this->WorkingData) && isset($this->WorkingData[$Entry])) {
            if (isset($this->WorkingData[$Entry]['Data']) && !empty($this->WorkingData[$Entry]['Time'])) {
                if ($this->WorkingData[$Entry]['Time'] <= 0 || $this->WorkingData[$Entry]['Time'] > time()) {
                    return $this->unserializeEntry($this->WorkingData[$Entry]['Data']);
                }
                unset($this->WorkingData[$Entry]);
                $this->Modified = true;
                return false;
            }
            return $this->unserializeEntry($this->WorkingData[$Entry]);
        }
        return false;
    }
public function getEntry($Entry)
    {
        if ($this->Using === 'APCu') {
            return $this->unserializeEntry(apcu_fetch($Entry));
        }
        if ($this->Using === 'Memcached' || $this->Using === 'Redis') {
            return $this->unserializeEntry($this->WorkingData->get($Entry));
        }
        if ($this->Using === 'PDO') {
            if ($this->clearExpiredPDO()) {
                $this->Modified = true;
            }
            $PDO = $this->WorkingData->prepare(self::getQuery);
            if ($PDO !== false && $PDO->execute(['key' => $Entry])) {
                $Data = $PDO->fetch(\PDO::FETCH_ASSOC);
                return isset($Data['Data']) ? $this->unserializeEntry($Data['Data']) : false;
            }
            return false;
        }
        if (is_array($this->WorkingData) && isset($this->WorkingData[$Entry])) {
            if (isset($this->WorkingData[$Entry]['Data']) && !empty($this->WorkingData[$Entry]['Time'])) {
                if ($this->WorkingData[$Entry]['Time'] <= 0 || $this->WorkingData[$Entry]['Time'] > time()) {
                    return $this->unserializeEntry($this->WorkingData[$Entry]['Data']);
                }
                unset($this->WorkingData[$Entry]);
                $this->Modified = true;
                return false;
            }
            return $this->unserializeEntry($this->WorkingData[$Entry]);
        }
        return false;
    }
public function getEntry ( $ Entry ) { if ( $ this -> Using === 'APCu' ) { return $ this -> unserializeEntry ( apcu_fetch ( $ Entry ) ) ; } if ( $ this -> Using === 'Memcached' || $ this -> Using === 'Redis' ) { return $ this -> unserializeEntry ( $ this -> WorkingData -> get ( $ Entry ) ) ; } if ( $ this -> Using === 'PDO' ) { if ( $ this -> clearExpiredPDO ( ) ) { $ this -> Modified = true ; } $ PDO = $ this -> WorkingData -> prepare ( self :: getQuery ) ; if ( $ PDO !== false && $ PDO -> execute ( [ 'key' => $ Entry ] ) ) { $ Data = $ PDO -> fetch ( \ PDO :: FETCH_ASSOC ) ; return isset ( $ Data [ 'Data' ] ) ? $ this -> unserializeEntry ( $ Data [ 'Data' ] ) : false ; } return false ; } if ( is_array ( $ this -> WorkingData ) && isset ( $ this -> WorkingData [ $ Entry ] ) ) { if ( isset ( $ this -> WorkingData [ $ Entry ] [ 'Data' ] ) && ! empty ( $ this -> WorkingData [ $ Entry ] [ 'Time' ] ) ) { if ( $ this -> WorkingData [ $ Entry ] [ 'Time' ] <= 0 || $ this -> WorkingData [ $ Entry ] [ 'Time' ] > time ( ) ) { return $ this -> unserializeEntry ( $ this -> WorkingData [ $ Entry ] [ 'Data' ] ) ; } unset ( $ this -> WorkingData [ $ Entry ] ) ; $ this -> Modified = true ; return false ; } return $ this -> unserializeEntry ( $ this -> WorkingData [ $ Entry ] ) ; } return false ; }
Get a cache entry.

@param string $Entry The name of the cache entry to get.
@return mixed The retrieved cache entry, or false on failure (e.g., if the cache entry doesn't exist).
Get a cache entry .