You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect $prefix1Keys to only contain prefix1-myKey, however it also includes prefix2-myKey.
$_PHCM correctly lists both keys as array keys and TTL as values.
Zephir source of queryKeys() is dead simple and my $_PHCM is equivalent of keys below:
let keys = memcache->get(specialKey);
if typeof keys == "array" {
let keys = array_keys(keys);
for key in keys {
if prefix && !starts_with(key, prefix) {
unset keys[key];
}
}
}
No idea what may be failing there...
Thanks!
The text was updated successfully, but these errors were encountered:
Once we flipped contents of $_PHCM array, cache keys are values of keys array. So, the for key in keys yields cached key. Thus, unset keys[key]; is wrong.
So, the ZEP code should be changed to:
let keys = memcache->get(specialKey);
iftypeof keys =="array" {
let keys = array_keys(keys);
for idx, key in keys {
if prefix &&!starts_with(key, prefix) {
unset keys[idx];
}
}
}
Hi,
The code:
I expect
$prefix1Keys
to only contain prefix1-myKey, however it also includes prefix2-myKey.$_PHCM correctly lists both keys as array keys and TTL as values.
Zephir source of queryKeys() is dead simple and my $_PHCM is equivalent of keys below:
No idea what may be failing there...
Thanks!
The text was updated successfully, but these errors were encountered: