class DrupalFakeCache

Defines a stub cache implementation to be used during installation.

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. Obviously, using this cache implementation during normal operations would have a negative impact on performance.

Hierarchy

Expanded class hierarchy of DrupalFakeCache

File

includes/cache-install.inc, line 17
Provides a stub cache implementation to be used during installation.

Members

Name Modifiers Type Description
DrupalDatabaseCache::$bin protected property
DrupalDatabaseCache::garbageCollection protected function Garbage collection for get() and getMultiple().
DrupalDatabaseCache::isValidBin function Checks if $this->bin represents a valid cache table.
DrupalDatabaseCache::prepareItem protected function Prepares a cached item.
DrupalDatabaseCache::__construct function Constructs a DrupalDatabaseCache object.
DrupalFakeCache::clear function Overrides DrupalDatabaseCache::clear(). Overrides DrupalDatabaseCache::clear
DrupalFakeCache::get function Overrides DrupalDatabaseCache::get(). Overrides DrupalDatabaseCache::get
DrupalFakeCache::getMultiple function Overrides DrupalDatabaseCache::getMultiple(). Overrides DrupalDatabaseCache::getMultiple
DrupalFakeCache::isEmpty function Overrides DrupalDatabaseCache::isEmpty(). Overrides DrupalDatabaseCache::isEmpty
DrupalFakeCache::set function Overrides DrupalDatabaseCache::set(). Overrides DrupalDatabaseCache::set

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!cache-install.inc/class/DrupalFakeCache/7.x