protected function EdgeEntityStorageBase::getPersistentCacheExpiration in Apigee Edge 8
Number of seconds after a cache item expires.
So our "persistent cache" implementation could be actually not a persistent one but we kept using this naming convention by hoping that the persistent caching features becomes decoupled from ContentEntityStorageBase and we could build on the top of that solution with as less pain as possible.
Return value
int Number of seconds after a cache item expires.
3 calls to EdgeEntityStorageBase::getPersistentCacheExpiration()
- AppStorage::setPersistentCache in src/
Entity/ Storage/ AppStorage.php - Stores entities in the persistent cache backend.
- DeveloperStorage::setPersistentCache in src/
Entity/ Storage/ DeveloperStorage.php - Stores entities in the persistent cache backend.
- EdgeEntityStorageBase::setPersistentCache in src/
Entity/ Storage/ EdgeEntityStorageBase.php - Stores entities in the persistent cache backend.
File
- src/
Entity/ Storage/ EdgeEntityStorageBase.php, line 411
Class
- EdgeEntityStorageBase
- Base entity storage class for Apigee Edge entities.
Namespace
Drupal\apigee_edge\Entity\StorageCode
protected function getPersistentCacheExpiration() {
if ($this->cacheExpiration !== CacheBackendInterface::CACHE_PERMANENT) {
return $this->systemTime
->getCurrentTime() + $this->cacheExpiration;
}
return $this->cacheExpiration;
}