Removes the cached objects with the specified tag.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
public override void RemoveByTag( Tag tag ) |
Visual Basic |
---|
Public Overrides Sub RemoveByTag ( _ tag As Tag _ ) |
Visual C++ |
---|
public: virtual void RemoveByTag( Tag^ tag ) override |
Parameters
- tag
- Type: Alachisoft.NCache.Runtime.Caching..::..Tag
A Tag to search with.
Examples
The following example demonstrates how to remove the objects that have the specified tag.
CopyC#
Cache cache = NCache.InitializeCache("myCache"); Tag tag = new Tag("Alpha"); cache.RemoveByTag(tag);