I was wondering if there is a way to delete elements from the Play cache using a regex.
I'm using play 2.2.x and I'm storing elements in the cache following this pattern:
collectionName.identifier
Is there a way to expire the caché using a regular expression to match the key, like:
collectionName.[a-zA-Z0-9]+
The reason I want to do that is because sometimes I will update elements in db matching some fields, and I can't really know which elements were updated.
If there is a way in ReactiveMongo to get the updated object identifiers, that would help me as well.
Thanks for any help.