Class ilShm.
More...
◆ __construct()
ilShm::__construct |
( |
|
$service_id, |
|
|
|
$component |
|
) |
| |
◆ delete()
- Parameters
-
- Returns
- bool
Definition at line 90 of file class.ilShm.php.
91 return shm_remove_var(self::$shm_id, $key);
◆ exists()
- Parameters
-
- Returns
- bool
Definition at line 58 of file class.ilShm.php.
59 return shm_has_var(self::$shm_id, $key);
◆ flush()
- Returns
- bool
Definition at line 98 of file class.ilShm.php.
99 shmop_delete(self::$id);
◆ get()
- Parameters
-
- Returns
- mixed
Definition at line 80 of file class.ilShm.php.
81 return shmop_read(self::$shm_id, 0, self::$block_size);
◆ getActive()
set self::$active
Definition at line 28 of file class.ilShm.php.
29 self::$active = function_exists(
'shmop_open');
◆ getInstallable()
ilShm::getInstallable |
( |
| ) |
|
|
protected |
set self::$installable
Definition at line 36 of file class.ilShm.php.
38 self::$active = function_exists(
'shmop_open');
◆ serialize()
ilShm::serialize |
( |
|
$value | ) |
|
◆ set()
ilShm::set |
( |
|
$key, |
|
|
|
$serialized_value, |
|
|
|
$ttl = null |
|
) |
| |
- Parameters
-
| $key | |
| $serialized_value | |
null | $ttl | |
- Returns
- bool
Definition at line 70 of file class.ilShm.php.
71 return shmop_write(self::$shm_id, $key, $serialized_value);
◆ unserialize()
ilShm::unserialize |
( |
|
$serialized_value | ) |
|
- Parameters
-
- Returns
- mixed
Definition at line 120 of file class.ilShm.php.
unserialize($serialized_value)
◆ $block_size
◆ $shm_id
The documentation for this class was generated from the following file: