44 $cacheKey = sha1($key .
'|' . $value);
45 if (array_key_exists($cacheKey, self::$listKeys))
50 $iexKey = $key .
'|iex|' . $cacheKey;
51 $itemExist = apcu_fetch($iexKey);
52 if ($itemExist == $cacheKey)
57 $list = apcu_fetch($key);
64 if (!array_key_exists($value, $list))
68 apcu_store($key, $list, 0);
69 self::$listKeys[$cacheKey] = 1;
72 $this->
set($iexKey, 2591000, $cacheKey);
112 $list = apcu_fetch($key);
114 if (is_array($list) && !empty($list))
117 if (is_array($member))
119 foreach ($member as $keyID)
121 if (array_key_exists($keyID, $list))
124 $cacheKey = sha1($key .
'|' . $keyID);
125 unset($list[$keyID]);
126 unset(self::$listKeys[$cacheKey]);
128 $iexKey = $key .
'|iex|' . $cacheKey;
133 elseif (array_key_exists($member, $list))
136 $cacheKey = sha1($key .
'|' . $member);
137 unset(self::$listKeys[$cacheKey]);
138 unset($list[$member]);
140 $iexKey = $key .
'|iex|' . $cacheKey;
152 apcu_store($key, $list, 0);