You are here

interface PersistableCacheInterface in RESTful 7.2

Hierarchy

Expanded class hierarchy of PersistableCacheInterface

All classes that implement PersistableCacheInterface

1 file declares its use of PersistableCacheInterface
RestfulManager.php in src/RestfulManager.php
Contains \Drupal\restful\RestfulManager.

File

src/Util/PersistableCacheInterface.php, line 10
Contains \Drupal\restful\Util\PersistableCacheInterface.

Namespace

Drupal\restful\Util
View source
interface PersistableCacheInterface {

  /**
   * Checks if the cache contains the key.
   *
   * @param string $key
   *   The key to check.
   *
   * @return bool
   *   TRUE if the key is present in the cache. FALSE otherwise.
   */
  public function contains($key);

  /**
   * Gets the memory reference of the cached item.
   *
   * @param string $key
   *   The key to get.
   *
   * @return mixed
   *   The reference to the value.
   */
  public function &get($key);

  /**
   * Gets the memory reference of the cached item.
   *
   * @param string $key
   *   The key to set.
   * @param mixed $value
   *   The value to set.
   */
  public function set($key, $value);

  /**
   * Delete a cached item.
   *
   * @param string $key
   *   The key to delete.
   */
  public function delete($key);

  /**
   * Persist the cache to the RESTful cache.
   */
  public function persist();

}

Members

Namesort descending Modifiers Type Description Overrides
PersistableCacheInterface::contains public function Checks if the cache contains the key. 1
PersistableCacheInterface::delete public function Delete a cached item. 1
PersistableCacheInterface::get public function Gets the memory reference of the cached item. 1
PersistableCacheInterface::persist public function Persist the cache to the RESTful cache. 1
PersistableCacheInterface::set public function Gets the memory reference of the cached item. 1