protected function AppStorage::buildCacheIdForAppName in Apigee Edge 8
Generates a unique cache id for app name.
Developer id (uuid)/company name + app name together also represent a unique app entity id.
Parameters
string $owner: Developer id (UUID) or team (company) name.
string $app_name: The name of an app.
Return value
string Unique cache cid.
2 calls to AppStorage::buildCacheIdForAppName()
- AppStorage::getCachedAppId in src/
Entity/ Storage/ AppStorage.php - Returns cached app id for developer id/company name + app name.
- AppStorage::setPersistentCache in src/
Entity/ Storage/ AppStorage.php - Stores entities in the persistent cache backend.
File
- src/
Entity/ Storage/ AppStorage.php, line 271
Class
- AppStorage
- Base entity storage class for developer and team (company) app entities.
Namespace
Drupal\apigee_edge\Entity\StorageCode
protected function buildCacheIdForAppName(string $owner, string $app_name) {
// We do not need to worry about the length of the cid because the cache
// backend should ensure that the length of the cid is not too long.
// @see \Drupal\Core\Cache\DatabaseBackend::normalizeCid()
return "app_names:{$this->entityTypeId}:{$owner}:{$app_name}";
}