61 $cacheKey = sha1($key .
'|' . $value);
62 if (array_key_exists($cacheKey, self::$listKeys))
67 $iexKey = $key .
'|iex|' . $cacheKey;
68 $itemExist = self::$engine->get($iexKey);
69 if ($itemExist == $cacheKey)
74 $list = self::$engine->get($key);
81 if (!array_key_exists($value, $list))
84 $this->
set($key, 0, $list);
85 self::$listKeys[$cacheKey] = 1;
88 $this->
set($iexKey, 2591000, $cacheKey);
127 $list = self::$engine->get($key);
129 if (is_array($list) && !empty($list))
132 if (is_array($member))
134 foreach ($member as $keyID)
136 if (array_key_exists($keyID, $list))
139 $cacheKey = sha1($key .
'|' . $keyID);
140 unset($list[$keyID]);
141 unset(self::$listKeys[$cacheKey]);
143 $iexKey = $key .
'|iex|' . $cacheKey;
148 elseif (array_key_exists($member, $list))
151 $cacheKey = sha1($key .
'|' . $member);
152 unset(self::$listKeys[$cacheKey]);
153 unset($list[$member]);
155 $iexKey = $key .
'|iex|' . $cacheKey;
167 $this->
set($key, 0, $list);