diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-21 09:15:15 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-21 09:15:15 -0800 |
commit | 767d72d48ec1b641193a072a114d0cd1ca44faf0 (patch) | |
tree | a21f37b196ba52e27b13072cec800ee8f07d37c9 /includes/cache-install.inc | |
parent | 8ef9e8aa6e1ffa368188c42118cae36ccb507264 (diff) | |
download | brdo-767d72d48ec1b641193a072a114d0cd1ca44faf0.tar.gz brdo-767d72d48ec1b641193a072a114d0cd1ca44faf0.tar.bz2 |
Issue #1315886 by xjm, jhodgdon: Clean up API docs for includes directory, files starting with A-C.
Diffstat (limited to 'includes/cache-install.inc')
-rw-r--r-- | includes/cache-install.inc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/includes/cache-install.inc b/includes/cache-install.inc index d9bb0f92e..9e0dd01de 100644 --- a/includes/cache-install.inc +++ b/includes/cache-install.inc @@ -6,7 +6,7 @@ */ /** - * A stub cache implementation to be used during the installation process. + * 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, @@ -15,17 +15,30 @@ * normal operations would have a negative impact on performance. */ class DrupalFakeCache extends DrupalDatabaseCache implements DrupalCacheInterface { + + /** + * Overrides DrupalDatabaseCache::get(). + */ function get($cid) { return FALSE; } + /** + * Overrides DrupalDatabaseCache::getMultiple(). + */ function getMultiple(&$cids) { return array(); } + /** + * Overrides DrupalDatabaseCache::set(). + */ function set($cid, $data, $expire = CACHE_PERMANENT) { } + /** + * Overrides DrupalDatabaseCache::clear(). + */ function clear($cid = NULL, $wildcard = FALSE) { // If there is a database cache, attempt to clear it whenever possible. The // reason for doing this is that the database cache can accumulate data @@ -52,6 +65,9 @@ class DrupalFakeCache extends DrupalDatabaseCache implements DrupalCacheInterfac } } + /** + * Overrides DrupalDatabaseCache::isEmpty(). + */ function isEmpty() { return TRUE; } |