interface CacheOptionalInterface

Indicates that caching is optional.

This interface can be used to suggest that certain implementations are fast enough that they do not require additional caching.

If and how exactly this is implemented and used depends on the specific system.

Examples:

Hierarchy

Expanded class hierarchy of CacheOptionalInterface

All classes that implement CacheOptionalInterface

3 files declare their use of CacheOptionalInterface
AccessPolicyProcessor.php in core/lib/Drupal/Core/Session/AccessPolicyProcessor.php
SuperUserAccessPolicy.php in core/lib/Drupal/Core/Session/SuperUserAccessPolicy.php
UserRolesAccessPolicy.php in core/lib/Drupal/Core/Session/UserRolesAccessPolicy.php

File

core/lib/Drupal/Core/Cache/CacheOptionalInterface.php, line 18

Namespace

Drupal\Core\Cache
View source
interface CacheOptionalInterface {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.