summaryrefslogtreecommitdiffstatshomepage
path: root/core/lib/Drupal/Core/Cache/CacheOptionalInterface.php
blob: e27545a69c5f30ad391fc171a989c2c05bf0e9cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace Drupal\Core\Cache;

/**
 * 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:
 *  - If all active access policies implement this interface,
 *    \Drupal\Core\Session\AccessPolicyProcessor will skip the persistent cache.
 */
interface CacheOptionalInterface {

}