You are here

public function CompanyMembershipObjectCache::removeMembership in Apigee Edge 8

Removes company membership object from the cache.

Parameters

string $company: Name of a company.

Overrides CompanyMembershipObjectCacheInterface::removeMembership

File

modules/apigee_edge_teams/src/CompanyMembershipObjectCache.php, line 124

Class

CompanyMembershipObjectCache
Providers a persistent & non-persistent cache for company membership objects.

Namespace

Drupal\apigee_edge_teams

Code

public function removeMembership(string $company) : void {
  $this->memoryCache
    ->invalidate($company);
  $this->persistentCacheBackend
    ->invalidate($company);
}