You are here

protected function EdgeEntityStorageBase::buildCacheId in Apigee Edge 8

Builds the cache ID for the passed in entity ID.

Parameters

int $id: Entity ID for which the cache ID should be built.

Return value

string Cache ID that can be passed to the cache backend.

Overrides EntityStorageBase::buildCacheId

4 calls to EdgeEntityStorageBase::buildCacheId()
DeveloperStorage::setPersistentCache in src/Entity/Storage/DeveloperStorage.php
Stores entities in the persistent cache backend.
EdgeEntityStorageBase::getFromPersistentCache in src/Entity/Storage/EdgeEntityStorageBase.php
Gets entities from the persistent cache backend.
EdgeEntityStorageBase::resetCache in src/Entity/Storage/EdgeEntityStorageBase.php
Resets the internal, static entity cache.
EdgeEntityStorageBase::setPersistentCache in src/Entity/Storage/EdgeEntityStorageBase.php
Stores entities in the persistent cache backend.

File

src/Entity/Storage/EdgeEntityStorageBase.php, line 445

Class

EdgeEntityStorageBase
Base entity storage class for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

protected function buildCacheId($id) {
  return "values:{$this->entityTypeId}:{$id}";
}