19 public function fetch(
string $id)
21 if (
false === $this->
exists($id)) {
22 throw new InvalidArgumentException(
'Storage id doesn\'t exist');
25 return $this->storage[$id];
34 $this->storage[$key] =
$data;
45 return array_key_exists($id, $this->storage);
55 $cacheKey = md5(implode(
'|', $values));
An exception for terminatinating execution or to throw for unit testing.
Class ilForumNotificationCache.
createKeyByValues(array $values)
store(string $key, $data)
exists(string $id)
Checks if the current id exists.