function CachePluginBase::cache_set_expire

Determine expiration time in the cache table of the cache type or CACHE_PERMANENT if item shouldn't be removed automatically from cache.

Plugins must override this to implement expiration in the cache table.

Parameters

$type: The cache type, either 'query', 'result' or 'output'.

1 call to CachePluginBase::cache_set_expire()
CachePluginBase::cache_set in drupal/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
Save data to the cache.
1 method overrides CachePluginBase::cache_set_expire()
Time::cache_set_expire in drupal/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php
Determine expiration time in the cache table of the cache type or CACHE_PERMANENT if item shouldn't be removed automatically from cache.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php, line 123
Definition of Drupal\views\Plugin\views\cache\CachePluginBase.

Class

CachePluginBase
The base plugin to handle caching.

Namespace

Drupal\views\Plugin\views\cache

Code

function cache_set_expire($type) {
  return CacheBackendInterface::CACHE_PERMANENT;
}