interface RenderCacheInterface in RESTful 7.2
Hierarchy
- interface \Drupal\restful\RenderCache\RenderCacheInterface
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\RenderCacheView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RenderCacheInterface:: |
public | function | Clears the cache for the given cache object. | 1 |
RenderCacheInterface:: |
public static | function | Factory function to create a new RenderCacheInterface object. | 1 |
RenderCacheInterface:: |
public | function | Get the cache. | 1 |
RenderCacheInterface:: |
public | function | Get the cache ID (aka cache hash). | 1 |
RenderCacheInterface:: |
public | function | Set the cache. | 1 |