public function multiGet(array $keys, $localOnly = false)
    {
        $keys = array_unique($keys);
        $results = array();
        $others = array();
        foreach ($keys as $key) {
            $cacheKey = $this->cacheKey($key);
            if ($this->keepLocalCache && array_key_exists($cacheKey, $this->localCache))
                $results[$cacheKey] = $this->localCache[$cacheKey];
            else
                $others[] = $cacheKey;
        }

        if(!$localOnly) {
            $results = array_merge($results, ($cached = $this->cacheStore->multiGet($others)) == false ? array() : $cached);
            if($this->keepLocalCache && !empty($cached))
		        foreach($cached as $key => $value)
			        $this->localCache[$key] = $value;

            unset($cached);
        }
        unset($keys);
        unset($others);


        return $results;
    }
public function multiGet(array $keys, $localOnly = false)
    {
        $keys = array_unique($keys);
        $results = array();
        $others = array();
        foreach ($keys as $key) {
            $cacheKey = $this->cacheKey($key);
            if ($this->keepLocalCache && array_key_exists($cacheKey, $this->localCache))
                $results[$cacheKey] = $this->localCache[$cacheKey];
            else
                $others[] = $cacheKey;
        }

        if(!$localOnly) {
            $results = array_merge($results, ($cached = $this->cacheStore->multiGet($others)) == false ? array() : $cached);
            if($this->keepLocalCache && !empty($cached))
		        foreach($cached as $key => $value)
			        $this->localCache[$key] = $value;

            unset($cached);
        }
        unset($keys);
        unset($others);


        return $results;
    }
public function multiGet ( array $ keys , $ localOnly = false ) { $ keys = array_unique ( $ keys ) ; $ results = array ( ) ; $ others = array ( ) ; foreach ( $ keys as $ key ) { $ cacheKey = $ this -> cacheKey ( $ key ) ; if ( $ this -> keepLocalCache && array_key_exists ( $ cacheKey , $ this -> localCache ) ) $ results [ $ cacheKey ] = $ this -> localCache [ $ cacheKey ] ; else $ others [ ] = $ cacheKey ; } if ( ! $ localOnly ) { $ results = array_merge ( $ results , ( $ cached = $ this -> cacheStore -> multiGet ( $ others ) ) == false ? array ( ) : $ cached ) ; if ( $ this -> keepLocalCache && ! empty ( $ cached ) ) foreach ( $ cached as $ key => $ value ) $ this -> localCache [ $ key ] = $ value ; unset ( $ cached ) ; } unset ( $ keys ) ; unset ( $ others ) ; return $ results ; }
Returns an array of nodes from cache specified by key

@param array $keys An array of keys to fetch
@param bool $localOnly

@return array
Returns an array of nodes from cache specified by key