/** * {@inheritdoc} */ public function setMulti(array $items, $expire = 0) { // store the values in memory, so that when we ask for it again later in // this same request, we get the value we just set $success = $this->local->setMulti($items, $expire); // only attempt to store those that we've set successfully to local $successful = array_intersect_key($items, $success); if (!empty($successful)) { $this->defer->setMulti($successful, $expire); } return $success; }