3 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
4 require_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;
51 return self::$memcache_object;
72 public function set($key, $serialized_value, $ttl = null) {
82 public function get($key) {
92 public function delete($key) {
112 if (!is_array($stats)) {
117 if ($server[
'pid'] > 0) {
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()) {
__construct($service_id, $component)
unserialize($serialized_value)
Class ilGlobalCacheService.
static where($where, $operator=null)
Create styles array
The data for the language used.
getInstallationFailureReason()