You are here

interface CompanyMembershipObjectCacheInterface in Apigee Edge 8

Company membership object cache definition.

Hierarchy

Expanded class hierarchy of CompanyMembershipObjectCacheInterface

All classes that implement CompanyMembershipObjectCacheInterface

1 file declares its use of CompanyMembershipObjectCacheInterface
TeamController.php in modules/apigee_edge_teams/src/Entity/Controller/TeamController.php

File

modules/apigee_edge_teams/src/CompanyMembershipObjectCacheInterface.php, line 28

Namespace

Drupal\apigee_edge_teams
View source
interface CompanyMembershipObjectCacheInterface {

  /**
   * Saves company membership object to the cache.
   *
   * @param string $company
   *   Name of a company.
   * @param \Apigee\Edge\Api\Management\Structure\CompanyMembership $membership
   *   Membership object with the members.
   */
  public function saveMembership(string $company, CompanyMembership $membership) : void;

  /**
   * Removes company membership object from the cache.
   *
   * @param string $company
   *   Name of a company.
   */
  public function removeMembership(string $company) : void;

  /**
   * Invalidate membership objects by tags.
   *
   * @param array $tags
   *   Array of cache tags.
   */
  public function invalidateMemberships(array $tags) : void;

  /**
   * Returns membership object from the cache.
   *
   * @param string $company
   *   Name of a company.
   *
   * @return \Apigee\Edge\Api\Management\Structure\CompanyMembership|null
   *   Membership object with the members or null if no entry found for the
   *   given company in the cache.
   */
  public function getMembership(string $company) : ?CompanyMembership;

}

Members

Namesort descending Modifiers Type Description Overrides
CompanyMembershipObjectCacheInterface::getMembership public function Returns membership object from the cache. 1
CompanyMembershipObjectCacheInterface::invalidateMemberships public function Invalidate membership objects by tags. 1
CompanyMembershipObjectCacheInterface::removeMembership public function Removes company membership object from the cache. 1
CompanyMembershipObjectCacheInterface::saveMembership public function Saves company membership object to the cache. 1