class MailCacheNone in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailCacheNone.php \Drupal\simplenews\Mail\MailCacheNone
- 8 src/Mail/MailCacheNone.php \Drupal\simplenews\Mail\MailCacheNone
Cache implementation that does not cache anything at all.
Hierarchy
- class \Drupal\simplenews\Mail\MailCacheStatic implements MailCacheInterface
- class \Drupal\simplenews\Mail\MailCacheNone
Expanded class hierarchy of MailCacheNone
File
- src/
Mail/ MailCacheNone.php, line 10
Namespace
Drupal\simplenews\MailView source
class MailCacheNone extends MailCacheStatic {
/**
* {@inheritdoc}
*/
public function isCacheable(MailInterface $mail, $group, $key) {
return FALSE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MailCacheNone:: |
public | function |
Return if the requested element should be cached. Overrides MailCacheStatic:: |
|
MailCacheStatic:: |
protected | property | The static cache. | |
MailCacheStatic:: |
public | function |
Return a cached element, if existing. Overrides MailCacheInterface:: |
|
MailCacheStatic:: |
protected | function | Returns the cache identifier for the mail. | |
MailCacheStatic:: |
public | function |
Write an element to the cache. Overrides MailCacheInterface:: |