kernel/private/rest/classes/cache/cluster.php
public function restore( $id, $attributes = array(), $search = false )
    {
        // If cache is explicitely disabled, we don't try to process it
        if( $this->isCacheEnabled === false )
        {
            return false;
        }

        $this->clusterCacheFile = eZClusterFileHandler::instance(
            $this->properties['location'] . $this->generateIdentifier( $id, $attributes )
        );
        $result = $this->clusterCacheFile->processCache(
            array( $this, 'clusterRetrieve' ),
            null, // We won't call any generate callback as we're using ezcCache mechanism, so it's up to the cache caller to generate
            $this->properties['options']['ttl'],
            null,
            compact( 'id', 'attributes', 'fileName' )
        );

        if ( !$result instanceof eZClusterFileFailure )
        {
            return $result;
        }

        return false;
    }
public function restore( $id, $attributes = array(), $search = false )
    {
        // If cache is explicitely disabled, we don't try to process it
        if( $this->isCacheEnabled === false )
        {
            return false;
        }

        $this->clusterCacheFile = eZClusterFileHandler::instance(
            $this->properties['location'] . $this->generateIdentifier( $id, $attributes )
        );
        $result = $this->clusterCacheFile->processCache(
            array( $this, 'clusterRetrieve' ),
            null, // We won't call any generate callback as we're using ezcCache mechanism, so it's up to the cache caller to generate
            $this->properties['options']['ttl'],
            null,
            compact( 'id', 'attributes', 'fileName' )
        );

        if ( !$result instanceof eZClusterFileFailure )
        {
            return $result;
        }

        return false;
    }
public function restore ( $ id , $ attributes = array ( ) , $ search = false ) { // If cache is explicitely disabled, we don't try to process it if ( $ this -> isCacheEnabled === false ) { return false ; } $ this -> clusterCacheFile = eZClusterFileHandler :: instance ( $ this -> properties [ 'location' ] . $ this -> generateIdentifier ( $ id , $ attributes ) ) ; $ result = $ this -> clusterCacheFile -> processCache ( array ( $ this , 'clusterRetrieve' ) , null , // We won't call any generate callback as we're using ezcCache mechanism, so it's up to the cache caller to generate $ this -> properties [ 'options' ] [ 'ttl' ] , null , compact ( 'id' , 'attributes' , 'fileName' ) ) ; if ( ! $ result instanceof eZClusterFileFailure ) { return $ result ; } return false ; }
Restore data from the cache.

Restores the data associated with the given cache and
returns it. Please see {@link ezcCacheStorage::store()}
for more detailed information of cachable datatypes.

During access to cached data the caches are automatically
expired. This means, that the ezcCacheStorage object checks
before returning the data if it's still actual. If the cache
has expired, data will be deleted and false is returned.

You should always provide the attributes you assigned, although
the cache storages must be able to find a cache ID even without
them. BEWARE: Finding cache data only by ID can be much
slower than finding it by ID and attributes.

@param string $id                        The item ID.
@param array(string=>string) $attributes Attributes that describe the
cached data.
@param bool $search                      Whether to search for items
if not found directly. Default is
false.

@return mixed The cached data on success, otherwise false.
Restore data from the cache .