3 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
29 self::$active = function_exists(
'shmop_open');
38 self::$active = function_exists(
'shmop_open');
48 self::$shm_id = shmop_open(0xff3,
"c", 0644, 100);
49 self::$block_size = shmop_size(self::$shm_id);
59 return shm_has_var(self::$shm_id, $key);
70 public function set($key, $serialized_value, $ttl = NULL) {
71 return shmop_write(self::$shm_id, $key, $serialized_value);
80 public function get($key) {
81 return shmop_read(self::$shm_id, 0, self::$block_size);
90 public function delete($key) {
91 return shm_remove_var(self::$shm_id, $key);
99 shmop_delete(self::$id);