You are here

final class AppIdCache in Apigee Edge 8

Default app id cache implementation for app controller.

This cache stores app ids (UUIDs), app names must not be saved to this cache.

AppControllerInterface::getEntityIds() returns app ids (UUIDs).

Hierarchy

Expanded class hierarchy of AppIdCache

See also

\Apigee\Edge\Api\Management\Controller\AppControllerInterface

1 file declares its use of AppIdCache
AppController.php in src/Entity/Controller/AppController.php
1 string reference to 'AppIdCache'
apigee_edge.services.yml in ./apigee_edge.services.yml
apigee_edge.services.yml
1 service uses AppIdCache
apigee_edge.controller.cache.app_ids in ./apigee_edge.services.yml
Drupal\apigee_edge\Entity\Controller\Cache\AppIdCache

File

src/Entity/Controller/Cache/AppIdCache.php, line 35

Namespace

Drupal\apigee_edge\Entity\Controller\Cache
View source
final class AppIdCache extends EntityIdCache implements EntityIdCacheInterface {

  /**
   * {@inheritdoc}
   */
  protected function getEntityId(EntityInterface $entity) : string {

    /** @var \Apigee\Edge\Api\Management\Entity\AppInterface $entity */
    return $entity
      ->getAppId();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AppIdCache::getEntityId protected function Returns the unique id of an entity that getEntityIds() returns as well. Overrides EntityIdCache::getEntityId
EntityIdCache::$allIdsInCache private property Indicates whether all entity ids in cache all or not.
EntityIdCache::$ids private property Stored entity ids.
EntityIdCache::allIdsInCache final public function Changes whether all ids in the cache or not. Overrides EntityIdCacheInterface::allIdsInCache
EntityIdCache::doRemoveIds protected function Allows to perform additional tasks after entity ids got deleted from cache.
EntityIdCache::doSaveIds protected function Allows to perform additional tasks after entity ids got saved to cache.
EntityIdCache::getIds final public function Returns cached ids. Overrides EntityIdCacheInterface::getIds
EntityIdCache::isAllIdsInCache final public function Returns whether all entity ids in cache or not. Overrides EntityIdCacheInterface::isAllIdsInCache
EntityIdCache::removeIds final public function Removes ids from the cache. Overrides EntityIdCacheInterface::removeIds
EntityIdCache::saveEntities final public function Adds entities to the cache. Overrides EntityIdCacheInterface::saveEntities
EntityIdCache::saveIds final public function Adds entity ids to the cache. Overrides EntityIdCacheInterface::saveIds
EntityIdCache::__sleep public function Prevents data stored in entity id cache from being serialized.