49 $this->serializer->serialize([
51 'notification_type' => $notificationType
66 return $this->cache->test($this->getCacheKey($notificationType,
$customerId));
78 $this->cache->remove($this->getCacheKey($notificationType,
$customerId));
88 private function getCacheKey($notificationType,
$customerId)
90 return 'notification_' . $notificationType .
'_' .
$customerId;
add($notificationType, $customerId)
__construct(FrontendInterface $cache, SerializerInterface $serializer=null)
isExists($notificationType, $customerId)
const UPDATE_CUSTOMER_SESSION