You are here

class MailCacheNone in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Mail/MailCacheNone.php \Drupal\simplenews\Mail\MailCacheNone
  2. 3.x src/Mail/MailCacheNone.php \Drupal\simplenews\Mail\MailCacheNone

Cache implementation that does not cache anything at all.

Hierarchy

Expanded class hierarchy of MailCacheNone

File

src/Mail/MailCacheNone.php, line 10

Namespace

Drupal\simplenews\Mail
View source
class MailCacheNone extends MailCacheStatic {

  /**
   * {@inheritdoc}
   */
  public function isCacheable(MailInterface $mail, $group, $key) {
    return FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MailCacheNone::isCacheable public function Return if the requested element should be cached. Overrides MailCacheStatic::isCacheable
MailCacheStatic::$cache protected property The static cache.
MailCacheStatic::get public function Return a cached element, if existing. Overrides MailCacheInterface::get
MailCacheStatic::getCid protected function Returns the cache identifier for the mail.
MailCacheStatic::set public function Write an element to the cache. Overrides MailCacheInterface::set