Method RemoveByTag
RemoveByTag(Tag)
Removes the cached objects with the specified tag.
Declaration
void RemoveByTag(Tag tag)
Parameters
Type | Name | Description |
---|---|---|
Tag | tag | A Tag to search cache with. |
Examples
The following example demonstrates how to remove the objects with the specified tag.
ICache cache = CacheManager.GetCache("demoCache");
Tag tag = new Tag("Alpha");
cache.SearchService.RemoveByTag(tag);