/** * {@inheritdoc} */ public function contains(Currency $currency) { $item = $this->pool->getItem('currency|availability|' . $currency->getCode()); if (false === $item->isHit()) { $item->set($this->currencies->contains($currency)); if ($item instanceof TaggableItemInterface) { $item->addTag('currency.availability'); } $this->pool->save($item); } return $item->get(); }