3require_once(
'./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
4require_once(
'class.ilMemcacheServer.php');
25 if (!(self::$memcache_object instanceof Memcached) AND $this->
getInstallable()) {
29 $memcached =
new Memcached();
33 $memcached->resetServerList();
36 $servers[] = array( $ilMemcacheServer->getHost(), $ilMemcacheServer->getPort(), $ilMemcacheServer->getWeight() );
38 $memcached->addServers($servers);
41 self::$memcache_object = $memcached;
72 public function set($key, $serialized_value, $ttl =
null) {
82 public function get($key) {
92 public function delete($key) {
112 if (!is_array($stats)) {
133 return class_exists(
'Memcached');
144 if (!$stats[self::STD_SERVER .
':' . self::STD_PORT][
'pid'] > 0) {
145 return 'No Memcached-Server available';
149 return parent::getInstallationFailureReason();
177 if (self::isInstallable()) {
static where($where, $operator=null)
An exception for terminatinating execution or to throw for unit testing.
Class ilGlobalCacheService.
__construct($service_id, $component)
getInstallationFailureReason()
isValid($key)
Checks whether the cache key is valid or not.This method exists only for legacy reasons and has only ...
unserialize($serialized_value)