--- a/common.php 2012-01-17 23:34:44.979993002 +0400
+++ b/common.php 2012-01-18 11:53:13.219993001 +0400
@@ -354,7 +353,7 @@
$this->cur_query = null;
}
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
if (!$this->connected) $this->connect();
@@ -367,7 +366,7 @@
return ($this->connected) ? $this->memcache->get($name) : false;
}
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
if (!$this->connected) $this->connect();
@@ -380,7 +379,7 @@
return ($this->connected) ? $this->memcache->set($name, $value, false, $ttl) : false;
}
- function rm ($name)
+ function rm ($name, $prefix = '')
{
if (!$this->connected) $this->connect();
@@ -688,7 +687,7 @@
$this->cur_query = null;
}
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
if (!$this->connected) $this->connect();
@@ -701,7 +700,7 @@
return ($this->connected) ? unserialize($this->redis->get($name)) : false;
}
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
if (!$this->connected) $this->connect();
@@ -727,7 +726,7 @@
}
}
- function rm ($name)
+ function rm ($name, $prefix = '')
{
if (!$this->connected) $this->connect();
@@ -760,7 +759,7 @@
$this->dbg_enabled = sql_dbg_enabled();
}
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
$this->cur_query = "cache->get('$name')";
$this->debug('start');
@@ -771,7 +770,7 @@
return eaccelerator_get($name);
}
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
$this->cur_query = "cache->set('$name')";
$this->debug('start');
@@ -782,7 +781,7 @@
return eaccelerator_put($name, $value, $ttl);
}
- function rm ($name)
+ function rm ($name, $prefix = '')
{
$this->cur_query = "cache->rm('$name')";
$this->debug('start');
@@ -813,7 +812,7 @@
$this->dbg_enabled = sql_dbg_enabled();
}
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
$this->cur_query = "cache->get('$name')";
$this->debug('start');
@@ -824,7 +823,7 @@
return apc_fetch($name);
}
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
$this->cur_query = "cache->set('$name')";
$this->debug('start');
@@ -835,7 +834,7 @@
return apc_store($name, $value, $ttl);
}
- function rm ($name)
+ function rm ($name, $prefix = '')
{
$this->cur_query = "cache->rm('$name')";
$this->debug('start');
@@ -866,7 +865,7 @@
$this->dbg_enabled = sql_dbg_enabled();
}
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
$this->cur_query = "cache->get('$name')";
$this->debug('start');
@@ -877,7 +876,7 @@
return xcache_get($name);
}
- function set ($name, $value, $ttl = 0)
+ function set ($name, $value, $ttl = 0, $prefix = '')
{
$this->cur_query = "cache->set('$name')";
$this->debug('start');
@@ -888,7 +887,7 @@
return xcache_set($name, $value, $ttl);
}
- function rm ($name)
+ function rm ($name, $prefix = '')
{
$this->cur_query = "cache->rm('$name')";
$this->debug('start');
@@ -917,7 +916,7 @@
$this->dbg_enabled = sql_dbg_enabled();
}
- function get ($name)
+ function get ($name, $get_miss_key_callback = '', $prefix = '', $ttl = 0)
{
$filename = $this->dir . clean_filename($name) . '.php';
@@ -935,7 +934,7 @@
return (!empty($filecache['value'])) ? $filecache['value'] : false;
}
- function set ($name, $value, $ttl = 86400)
+ function set ($name, $value, $ttl = 86400, $prefix = '')
{
if (!function_exists('var_export'))
{
@@ -964,7 +963,7 @@
return (bool) file_write($filecache, $filename, false, true, true);
}
- function rm ($name)
+ function rm ($name, $prefix = '')
{
$filename = $this->dir . clean_filename($name) . '.php';
if (file_exists($filename))