Extreme Performance & Linear Scalability
  • Docs /
Show / Hide Table of Contents
Class NamedTagsDictionary - NCache

Class NamedTagsDictionary

Represents a dictionary that can be associated with the cache items to provide extra information so that items are grouped together and can be queried efficiently based on the provided information.

Inheritance
Object
NamedTagsDictionary
Namespace:Alachisoft.NCache.Runtime.Caching
Assembly:Alachisoft.NCache.Runtime.dll
Syntax
public class NamedTagsDictionary : object
Remarks

One dictionary can be associated with each cache item that might contain multiple named tags.

Examples

To create an instance of NamedTagsDictionary class and populate it you can use code as follows:

NamedTagsDictionary namedTags = new NamedTagsDictionary();
namedTags.Add("myInteger", 10);
namedTags.Add("myString", "hello");

Constructors

Name Description
NamedTagsDictionary()

Initialize the NameTagsDictionary object

Properties

Name Description
Count

Returns the number of items in named tags dictionary

Methods

Name Description
Add(String, DateTime)

Adds the key (DateTime)value pair in named tags dictionary

Add(String, Boolean)

Adds the key (bool)value pair in named tags dictionary

Add(String, Char)

Adds the key (char)value pair in named tags dictionary

Add(String, Decimal)

Adds the key (decimal)value pair in named tags dictionary

Add(String, Double)

Adds the key (double)value pair in named tags dictionary

Add(String, Int32)

Adds the key (int)value pair in named tags dictionary

Add(String, Int64)

Adds the key (long)value pair in named tags dictionary

Add(String, Single)

Adds the key (float)value pair in named tags dictionary

Add(String, String)

Adds the key (string)value pair in named tags dictionary

Contains(String)

Search for the key in named tags dictionary and Return true if it is found and false in other case.

GetEnumerator()

converts the NamedTags dictionary into IEnumerator and return it

Remove(String)

Removes the key value pair from named tags dictionary

 

 

 

Back to top Copyright © 2017 Alachisoft