3 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
19 self::STD_SERVER => self::STD_PORT,
32 if (! (self::$memcache_object instanceof Memcached) AND $this->
getInstallable()) {
33 $memcached =
new Memcached();
34 foreach (self::$servers as $host => $port) {
35 $memcached->addServer($host, $port);
37 self::$memcache_object = $memcached;
68 public function set($key, $serialized_value, $ttl = NULL) {
78 public function get($key) {
88 public function delete($key) {
108 return $stats[self::STD_SERVER .
':' .
self::STD_PORT][
'pid'] > 0;
117 return class_exists(
'Memcached');
128 if (! $stats[self::STD_SERVER .
':' . self::STD_PORT][
'pid'] > 0) {
129 return 'No Memcached-Server available';
161 if (self::isInstallable()) {