Method RemoveByAnyTag
RemoveByAnyTag(Tag[])
Removes the cached objects that have any of the same tags in common.
Declaration
public virtual void RemoveByAnyTag(Tag[] tags)
Parameters
Type | Name | Description |
---|---|---|
Tag[] | tags | An array of Tag to search with. |
Examples
The following example demonstrates how to remove the objects that have any of the specified tags in common.
Cache cache = NCache.InitializeCache("myCache");
Tag[] tags = new Tag[2];
tags[0] = new Tag("Alpha");
tags[1] = new Tag("Beta");
cache.RemoveByTag(tags);