Returns keys that have all the same tags in common. (Returns the Intersection set.)
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 virtual ICollection GetKeysByAllTags( Tag[] tags ) |
Visual Basic |
---|
Public Overridable Function GetKeysByAllTags ( _ tags As Tag() _ ) As ICollection |
Visual C++ |
---|
public: virtual ICollection^ GetKeysByAllTags( array<Tag^>^ tags ) |
Parameters
- tags
- Type: array<Alachisoft.NCache.Runtime.Caching..::..Tag>[]()[][]
An array of Tag to search with.
Return Value
A collection containing cache keys.Examples
The following example demonstrates how to get the keys that have all the specified tags
in common.
CopyC#
Cache cache = NCache.InitializeCache("myCache"); Tag[] tags = new Tag[2]; tags[0] = new Tag("Alpha"); tags[1] = new Tag("Beta"); ICollection keys = cache.GetKeysByAllTags(tags);