$contInfo = array(); // (resolved container name => cache value)
// Get all cache entries for these container cache keys...
- $values = $this->memCache->getBatch( array_keys( $contNames ) );
+ $values = $this->memCache->getMulti( array_keys( $contNames ) );
foreach ( $values as $cacheKey => $val ) {
$contInfo[$contNames[$cacheKey]] = $val;
}
}
}
// Get all cache entries for these container cache keys...
- $values = $this->memCache->getBatch( array_keys( $pathNames ) );
+ $values = $this->memCache->getMulti( array_keys( $pathNames ) );
foreach ( $values as $cacheKey => $val ) {
if ( is_array( $val ) ) {
$this->trimCache(); // limit memory
* @param $keys Array List of strings
* @return Array
*/
- public function getBatch( array $keys ) {
+ public function getMulti( array $keys ) {
$res = array();
foreach ( $keys as $key ) {
$res[$key] = $this->get( $key );
* @param $keys Array
* @return Array
*/
- public function getBatch( array $keys ) {
- $this->debugLog( 'getBatch(' . implode( ', ', $keys ) . ')' );
+ public function getMulti( array $keys ) {
+ $this->debugLog( 'getMulti(' . implode( ', ', $keys ) . ')' );
$callback = array( $this, 'encodeKey' );
$result = $this->client->getMulti( array_map( $callback, $keys ) );
return $this->checkResult( false, $result );
* @param $keys Array
* @return Array
*/
- public function getBatch( array $keys ) {
+ public function getMulti( array $keys ) {
$callback = array( $this, 'encodeKey' );
return $this->client->get_multi( array_map( $callback, $keys ) );
}
}
public function get( $key ) {
- $values = $this->getBatch( array( $key ) );
+ $values = $this->getMulti( array( $key ) );
return $values[$key];
}
- public function getBatch( array $keys ) {
+ public function getMulti( array $keys ) {
$values = array(); // array of (key => value)
$keysByTableName = array();