summaryrefslogtreecommitdiff
path: root/includes/cache-install.inc
blob: 3ab41410d16ad8ec3fe07d72a1cca5034a5ccb23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// $Id$

/**
 * A stub cache implementation to be used during the installation
 * process 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.
 */
class DrupalFakeCache implements DrupalCacheInterface {
  function __construct($bin) {
  }

  function get($cid) {
    return FALSE;
  }

  function getMultiple(&$cids) {
    return array();
  }


  function set($cid, $data, $expire = CACHE_PERMANENT, array $headers = NULL) {
  }

  function clear($cid = NULL, $wildcard = FALSE) {
  }
	
}