Hi,<br><br>We have a requirement to invalidate a set of cache entries based on a prefix (or a tag)<br><br>I thought of the following approaches<br><br>1. Tag each entry (as discussed in the other thread) with a gen count and once we want to invalidate
<br>incr the global gen count. While looking up, if the gen count of the entry is less than the global gen count<br>for a given prefix (or tag) then return null.<br><br>2. Each key also has a gen count as a part of the key (for a given prefix or a tag). When we want to invalidate
<br>then bump up the gen count in the client. So all subsequent lookups will fail.<br><br>3. Write a regex engine (or a tag feature) which will go an invalidate all the entries matching a prefix or a tag.<br><br>Options 1 and 2 are easy to implement but the drawback is that because of the way ejections work (LRU)
<br>we may let these invalid content hang around and eject out valid content.<br><br>Any other way of handling this? <br><br>thanks,<br>-venkatesh<br><br>