public function setMulti(array $items, $expire = 0)
{
$shards = $this->getShards(array_keys($items));
$results = array();
/** @var KeyValueStore $shard */
foreach ($shards as $shard) {
$keysOnShard = $shards[$shard];
$itemsOnShard = array_intersect_key($items, array_flip($keysOnShard));
$results += $shard->setMulti($itemsOnShard, $expire);
}
return $results;
}