/** * @return int */ public function getServiceType() { return $this->global_cache->getServiceType(); }
/** * @param $service_id * @param $component */ public function __construct($service_id, $component) { parent::__construct($service_id, $component); self::$shm_id = shmop_open(0xff3, "c", 0644, 100); self::$block_size = shmop_size(self::$shm_id); }
/** * @return string */ public function getInstallationFailureReason() { if ($this->getMemcacheObject() instanceof Memcached) { $stats = $this->getMemcacheObject()->getStats(); if (!$stats[self::STD_SERVER . ':' . self::STD_PORT]['pid'] > 0) { return 'No Memcached-Server available'; } } return parent::getInstallationFailureReason(); }