You are here

public function AppStorage::getCachedAppId in Apigee Edge 8

Returns cached app id for developer id/company name + app name.

Parameters

string $owner: UUID of a developer or a team (company) name.

string $app_name: Name of an app owned by the provided owner.

Return value

null|string The app id if it found, null otherwise.

File

src/Entity/Storage/AppStorage.php, line 289

Class

AppStorage
Base entity storage class for developer and team (company) app entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

public function getCachedAppId(string $owner, string $app_name) {
  $item = $this->cacheBackend
    ->get($this
    ->buildCacheIdForAppName($owner, $app_name));
  return $item ? $item->data : NULL;
}