simple-cache
simple-cache copied to clipboard
Remove items with regex?
For granular cache invalidation it's useful to have a middle road option between removeAll() and removeItem(key), and that's removeThose(regexp). So that I can remove all the items with a prefix, like 'imagecache_%'.
It would help avoid having to create multiple caches. But I understand that given the various backends the feature might be cumbersome to implement.
Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.93. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.