You are here

interface RestfulStaticCacheControllerInterface in RESTful 7

@file Contains RestfulStaticCacheControllerInterface

Hierarchy

Expanded class hierarchy of RestfulStaticCacheControllerInterface

All classes that implement RestfulStaticCacheControllerInterface

File

includes/RestfulStaticCacheControllerInterface.php, line 8
Contains RestfulStaticCacheControllerInterface

View source
interface RestfulStaticCacheControllerInterface {

  /**
   * Gets the static cache.
   *
   * @param string $cid
   *   The cache key to use.
   * @param mixed $default
   *   The default value in case there is no static cache.
   *
   * @return mixed
   *   The cached value.
   */
  public function get($cid, $default = NULL);

  /**
   * Sets the static cache.
   *
   * @param string $cid
   *   The cache key to use.
   * @param mixed $value
   *   The value to set.
   *
   * @return mixed
   *   The cached value.
   */
  public function set($cid, $value);

  /**
   * Clear a particular cache value.
   *
   * @param string $cid
   *   The cache ID to clear.
   */
  public function clear($cid);

  /**
   * Clear all registered cache values.
   */
  public function clearAll();

}

Members

Namesort descending Modifiers Type Description Overrides
RestfulStaticCacheControllerInterface::clear public function Clear a particular cache value. 1
RestfulStaticCacheControllerInterface::clearAll public function Clear all registered cache values. 1
RestfulStaticCacheControllerInterface::get public function Gets the static cache. 1
RestfulStaticCacheControllerInterface::set public function Sets the static cache. 1