interface PersistableCacheInterface in RESTful 7.2
Hierarchy
- interface \Drupal\restful\Util\PersistableCacheInterface
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\UtilView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PersistableCacheInterface:: |
public | function | Checks if the cache contains the key. | 1 |
PersistableCacheInterface:: |
public | function | Delete a cached item. | 1 |
PersistableCacheInterface:: |
public | function | Gets the memory reference of the cached item. | 1 |
PersistableCacheInterface:: |
public | function | Persist the cache to the RESTful cache. | 1 |
PersistableCacheInterface:: |
public | function | Gets the memory reference of the cached item. | 1 |