You are here

interface RenderCacheInterface in RESTful 7.2

Hierarchy

Expanded class hierarchy of RenderCacheInterface

All classes that implement RenderCacheInterface

File

src/RenderCache/RenderCacheInterface.php, line 13
Contains \Drupal\restful\RenderCache\RenderCacheInterface.

Namespace

Drupal\restful\RenderCache
View source
interface RenderCacheInterface {

  /**
   * Factory function to create a new RenderCacheInterface object.
   *
   * @param ArrayCollection $cache_fragments
   *   The tags collection.
   * @param \DrupalCacheInterface $cache_object
   *   The cache backend to use.
   *
   * @return RenderCacheInterface
   *   The cache controller.
   */
  public static function create(ArrayCollection $cache_fragments, \DrupalCacheInterface $cache_object);

  /**
   * Get the cache.
   *
   * @return mixed
   *   The cache value.
   */
  public function get();

  /**
   * Set the cache.
   *
   * @param mixed $value
   *   The value to cache.
   */
  public function set($value);

  /**
   * Clears the cache for the given cache object.
   */
  public function clear();

  /**
   * Get the cache ID (aka cache hash).
   *
   * @return string
   *   The cache ID.
   */
  public function getCid();

}

Members

Namesort descending Modifiers Type Description Overrides
RenderCacheInterface::clear public function Clears the cache for the given cache object. 1
RenderCacheInterface::create public static function Factory function to create a new RenderCacheInterface object. 1
RenderCacheInterface::get public function Get the cache. 1
RenderCacheInterface::getCid public function Get the cache ID (aka cache hash). 1
RenderCacheInterface::set public function Set the cache. 1