35 return function_exists(
'shmop_open');
52 self::$shm_id = shmop_open(0xff3,
"c", 0644, 100);
53 self::$block_size = shmop_size(self::$shm_id);
58 return shm_has_var(self::$shm_id, $key);
62 public function set(
string $key, $serialized_value,
int $ttl = null):
bool 64 return (
bool) shmop_write(self::$shm_id, $key, $serialized_value);
68 public function get(
string $key)
70 return shmop_read(self::$shm_id, 0, self::$block_size);
73 public function delete(
string $key):
bool 75 return shm_remove_var(self::$shm_id, $key);
78 public function flush(
bool $complete =
false): bool
81 shmop_delete(self::$shm_id);
unserialize($serialized_value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(string $service_id, string $component)
ilShm constructor.
getActive()
set self::$active
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getInstallable()
set self::$installable
__construct(Container $dic, ilPlugin $plugin)
flush(bool $complete=false)