summaryrefslogtreecommitdiff
path: root/it_cache.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_cache.class')
-rw-r--r--it_cache.class8
1 files changed, 4 insertions, 4 deletions
diff --git a/it_cache.class b/it_cache.class
index d6d3029..bcd9bd3 100644
--- a/it_cache.class
+++ b/it_cache.class
@@ -24,7 +24,7 @@
class it_cache
{
-function _defaults($p)
+static function _defaults($p)
{
$p += array(
'ttl' => 2,
@@ -43,7 +43,7 @@ function _defaults($p)
* @param $key Key to get value for
* @return Value for given key or null
*/
-function get($key, $p = array())
+static function get($key, $p = array())
{
$p = it_cache::_defaults($p);
@@ -64,7 +64,7 @@ function get($key, $p = array())
* @param $p['ttl'] Time to live for this key/value-pair
* @return Boolean if value was put into cache
*/
-function put($key, $value, $p = array())
+static function put($key, $value, $p = array())
{
$p = it_cache::_defaults($p);
@@ -83,7 +83,7 @@ function put($key, $value, $p = array())
return $result;
}
-function _get_memcache($p)
+static function _get_memcache($p)
{
$memcache_id = "it_cache_memcache_" . $p['hostsfile'];