You are here

public function AppCacheByOwner::removeEntities in Apigee Edge 8

Removes entities from the cache by their ids.

Parameters

string[] $ids: Array of entity ids.

Overrides EntityCacheInterface::removeEntities

File

src/Entity/Controller/Cache/AppCacheByOwner.php, line 100

Class

AppCacheByOwner
Default cache store for apps of a specific owner.

Namespace

Drupal\apigee_edge\Entity\Controller\Cache

Code

public function removeEntities(array $ids) : void {
  $app_ids = $this
    ->getAppIdsByAppNames($ids);
  $all_app_entities = $this
    ->getEntities();
  $this->appCache
    ->removeEntities($app_ids);
  $this->appNameCache
    ->removeIds($ids);
  if (count($app_ids) === count($all_app_entities)) {
    $this
      ->allEntitiesInCache(FALSE);
  }
}