Elgg  Version 2.3
NullCache.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg\Cache;
3 
12 
22  public function save($key, $data, $ttl = null) {
23  return true;
24  }
25 
35  public function load($key, $offset = 0, $limit = null) {
36  return false;
37  }
38 
46  public function delete($key) {
47  return true;
48  }
49 
55  public function clear() {
56  return true;
57  }
58 }
save($key, $data, $ttl=null)
Saves a name and value to the cache.
Definition: NullCache.php:22
clear()
Clears the entire cache (does not work)
Definition: NullCache.php:55
$data
Definition: opendd.php:13
if(!$count) $offset
Definition: pagination.php:26
A "Null" version of ElggMemcache for use on sites without memcache setup.
Definition: NullCache.php:11
$limit
Definition: userpicker.php:38
$key
Definition: summary.php:34
load($key, $offset=0, $limit=null)
Retrieves data.
Definition: NullCache.php:35