strapi-community/strapi-plugin-rest-cache

get Keys for redis cache does not work

talabatyMomin opened this issue · 2 comments

When the "prefix" value comes in as "undefined" it is added to the query for keys and it returns an empty array becuase there is no key with the name "undefined{{the-rest-of-the-key}}".

currently added a customer provider with the fix

async keys(prefix) {
return prefix ? this.cache.keys(${prefix}*) : this.cache.keys('*');
}

Hey @talabatyMomin

Thanks for reporting the issue, I just released a patch 4.2.2, can you confirm it solves your issue ?

Thanks @stafyniaksacha it is working now in the patch.