<?php/**
* @file
* Definition of Drupal\Core\Cache\NullBackend.
*/namespaceDrupal\Core\Cache;
/**
* Defines a stub cache implementation.
*
* The stub implementation is needed when database access is not yet available.
* Because Drupal's caching system never requires that cached data be present,
* these stub functions can short-circuit the process and sidestep the need for
* any persistent storage. Using this cache implementation during normal
* operations would have a negative impact on performance.
*
* This also can be used for testing purposes.
*/class NullBackendimplements CacheBackendInterface {
/**
* Constructs a NullBackend object.
*
* @param string $bin
* The cache bin for which the object is created.
*/
public function__construct($bin) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::get().
*/
public functionget($cid, $allow_invalid = FALSE) {
returnFALSE;
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::getMultiple().
*/
public functiongetMultiple(&$cids, $allow_invalid = FALSE) {
returnarray();
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::set().
*/
public functionset($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANENT, array $tags = array()) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::delete().
*/
public functiondelete($cid) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteMultiple().
*/
public functiondeleteMultiple(array $cids) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteAll().
*/
public functiondeleteAll() {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteExpired().
*/
public functiondeleteExpired() {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteTags().
*/
public functiondeleteTags(array $tags) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidate().
*/
public functioninvalidate($cid) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple().
*/
public functioninvalidateMultiple(array $cids) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateTags().
*/
public functioninvalidateTags(array $tags) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateAll().
*/
public functioninvalidateAll() {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::garbageCollection().
*/
public functiongarbageCollection() {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::isEmpty().
*/
public functionisEmpty() {
returnTRUE;
}
}