You are here

public function AppCacheByOwnerFactory::getAppCache in Apigee Edge 8

Returns the same app cache instance for an owner.

Parameters

string $owner: Developer id (UUID), email address or a company's company name.

Return value

\Drupal\apigee_edge\Entity\Controller\Cache\AppCacheByOwnerInterface The app name cache instance that belongs to the owner.

Overrides AppCacheByOwnerFactoryInterface::getAppCache

File

src/Entity/Controller/Cache/AppCacheByOwnerFactory.php, line 67

Class

AppCacheByOwnerFactory
Base definition of the general app cache service for an app owner.

Namespace

Drupal\apigee_edge\Entity\Controller\Cache

Code

public function getAppCache(string $owner) : AppCacheByOwnerInterface {
  if (!isset($this->instances[$owner])) {
    $this->instances[$owner] = new AppCacheByOwner($owner, $this->appCache, $this->appNameCacheByOwnerFactory);
  }
  return $this->instances[$owner];
}