public function load($id, $doNotTestCacheValidity = false)
    {
        $id = (array) $id;
        foreach ($id as $key){
            $key = $this->_options['storage']['prefix_key'] . $key;
            $this->_getTransactionByKey($key)
                ->getFromHash(
                    $key,
                    self::FIELD_DATA
                );
        }
        $oldSerializaerAdapter = $this->getRediska()->getSerializer()->getAdapter();
        $this->getRediska()->setSerializerAdapter('toString');
        $result = $this->_execTransactions();
        $this->getRediska()->getSerializer()->setAdapter($oldSerializaerAdapter);
        if(count($result) == 1){
            if(null === ($result = array_shift($result))){
                return false;
            } else {
                return $result;
            }
        } else {
            return $result;
        }
    }
public function load($id, $doNotTestCacheValidity = false)
    {
        $id = (array) $id;
        foreach ($id as $key){
            $key = $this->_options['storage']['prefix_key'] . $key;
            $this->_getTransactionByKey($key)
                ->getFromHash(
                    $key,
                    self::FIELD_DATA
                );
        }
        $oldSerializaerAdapter = $this->getRediska()->getSerializer()->getAdapter();
        $this->getRediska()->setSerializerAdapter('toString');
        $result = $this->_execTransactions();
        $this->getRediska()->getSerializer()->setAdapter($oldSerializaerAdapter);
        if(count($result) == 1){
            if(null === ($result = array_shift($result))){
                return false;
            } else {
                return $result;
            }
        } else {
            return $result;
        }
    }
public function load ( $ id , $ doNotTestCacheValidity = false ) { $ id = ( array ) $ id ; foreach ( $ id as $ key ) { $ key = $ this -> _options [ 'storage' ] [ 'prefix_key' ] . $ key ; $ this -> _getTransactionByKey ( $ key ) -> getFromHash ( $ key , self :: FIELD_DATA ) ; } $ oldSerializaerAdapter = $ this -> getRediska ( ) -> getSerializer ( ) -> getAdapter ( ) ; $ this -> getRediska ( ) -> setSerializerAdapter ( 'toString' ) ; $ result = $ this -> _execTransactions ( ) ; $ this -> getRediska ( ) -> getSerializer ( ) -> setAdapter ( $ oldSerializaerAdapter ) ; if ( count ( $ result ) == 1 ) { if ( null === ( $ result = array_shift ( $ result ) ) ) { return false ; } else { return $ result ; } } else { return $ result ; } }
Load value with given id from cache

@param  string  $id                     Cache id
@param  boolean $doNotTestCacheValidity If set to true, the cache validity won't be tested
@return string|false cached datas
Load value with given id from cache