protected function _setSearchCache($data, $sdata)
    {
        $sdata['metadata'][self::CACHE_SEARCH][$sdata['id']] = $data;

        $this->_cache->setMetaData($this->_selected, null, $sdata['metadata']);

        if ($this->_debug->debug) {
            $this->_debug->info(sprintf(
                'SEARCH: Saved %s to cache (%s [%s])',
                $sdata['type'],
                $sdata['id'],
                $this->_selected
            ));
            unset($this->_temp['searchcacheexpire'][strval($this->_selected)]);
        }
    }
protected function _setSearchCache($data, $sdata)
    {
        $sdata['metadata'][self::CACHE_SEARCH][$sdata['id']] = $data;

        $this->_cache->setMetaData($this->_selected, null, $sdata['metadata']);

        if ($this->_debug->debug) {
            $this->_debug->info(sprintf(
                'SEARCH: Saved %s to cache (%s [%s])',
                $sdata['type'],
                $sdata['id'],
                $this->_selected
            ));
            unset($this->_temp['searchcacheexpire'][strval($this->_selected)]);
        }
    }
protected function _setSearchCache ( $ data , $ sdata ) { $ sdata [ 'metadata' ] [ self :: CACHE_SEARCH ] [ $ sdata [ 'id' ] ] = $ data ; $ this -> _cache -> setMetaData ( $ this -> _selected , null , $ sdata [ 'metadata' ] ) ; if ( $ this -> _debug -> debug ) { $ this -> _debug -> info ( sprintf ( 'SEARCH: Saved %s to cache (%s [%s])' , $ sdata [ 'type' ] , $ sdata [ 'id' ] , $ this -> _selected ) ) ; unset ( $ this -> _temp [ 'searchcacheexpire' ] [ strval ( $ this -> _selected ) ] ) ; } }
Set data in the search cache.

@param mixed $data    The cache data to store.
@param string $sdata  The search data returned from _getSearchCache().
Set data in the search cache .