From 17f9e6e7b4a15d6eee07f511c6addf7cbb57feba Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 10 Mar 2008 08:18:14 +0000 Subject: [PATCH] Removed cache handler git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9479 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_cache_handler.inc | 90 ----------------------- 1 file changed, 90 deletions(-) delete mode 100644 gosa-core/include/class_cache_handler.inc diff --git a/gosa-core/include/class_cache_handler.inc b/gosa-core/include/class_cache_handler.inc deleted file mode 100644 index f130e0a0c..000000000 --- a/gosa-core/include/class_cache_handler.inc +++ /dev/null @@ -1,90 +0,0 @@ -connect(); - } - - - function connect() - { - $this->close(); - if(class_exists("Memcache")){ - $this->c_memcache = new Memcache; - $res = $this->c_memcache->pconnect("localhost",11211); - if(!$res){ - $this->b_connected = FALSE; - $this->c_memcache = NULL; - }else{ - $this->b_connected = TRUE; - } - } - } - - function close() - { - if($this->b_connected){ - $this->c_memcache->close(); - } - } - - - function save($key,$value) - { - if($this->b_connected){ - $this->c_memcache->set($key,$value); - } - } - - function load($key) - { - if($this->b_connected){ - return($this->c_memcache->get($key)); - } - } - - function remove($key) - { - if($this->b_connected){ - return($this->c_memcache->delete($key)); - } - } - - function status() - { - if($this->b_connected){ - return($this->c_memcache->getStats()); - }else{ - return(""); - } - } -} - - -// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -?> -- 2.30.2