I needed the ability to remove all keys matching particular patterns, where one key might match more than one pattern, so regions would not suffice.
The work around is to have OnAdd/OnRemove hooks that keep track of all the keys, but this is inefficient as many of the backends have clear ways to get the keys (in memory and redis are the ones I'm using for the project).
I needed the ability to remove all keys matching particular patterns, where one key might match more than one pattern, so regions would not suffice.
The work around is to have OnAdd/OnRemove hooks that keep track of all the keys, but this is inefficient as many of the backends have clear ways to get the keys (in memory and redis are the ones I'm using for the project).