function CachePluginBase::cache_set_expire in Views (for Drupal 7) 8.3
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 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 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
- 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\cacheCode
function cache_set_expire($type) {
return CacheBackendInterface::CACHE_PERMANENT;
}