Removing Items from Cache Containing Tag
To utilize the APIs, include the following namespace in your application:
Alachisoft.NCache.Runtime.Caching.
The following examples demonstrate how to remove items either containing a specified tag, any tag from the list, or all the tags in the list.
//For removing keys containing specified tag
cache.RemoveByTag(productTags[0]);
//For removing keys containing at least one tag from tags list.
cache.RemoveByAnyTag(productTags);
//For removing keys containing all tags from list
cache.RemoveByAllTags(productTags);