@@ 261-264 (lines=4) @@ | ||
258 | $values = []; // array of (key => value) |
|
259 | ||
260 | $keysByTable = []; |
|
261 | foreach ( $keys as $key ) { |
|
262 | list( $serverIndex, $tableName ) = $this->getTableByKey( $key ); |
|
263 | $keysByTable[$serverIndex][$tableName][] = $key; |
|
264 | } |
|
265 | ||
266 | $this->garbageCollect(); // expire old entries if any |
|
267 | ||
@@ 321-324 (lines=4) @@ | ||
318 | ||
319 | public function setMulti( array $data, $expiry = 0 ) { |
|
320 | $keysByTable = []; |
|
321 | foreach ( $data as $key => $value ) { |
|
322 | list( $serverIndex, $tableName ) = $this->getTableByKey( $key ); |
|
323 | $keysByTable[$serverIndex][$tableName][] = $key; |
|
324 | } |
|
325 | ||
326 | $this->garbageCollect(); // expire old entries if any |
|
327 |