• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Property QueryIdentifier

QueryIdentifier

Identifier for a query which is added as a Alachisoft.NCache.Runtime.Caching.Tag against the result set of the query in cache. This MUST be unique for each unique query. QueryIdentifier is used to regenerate the result set from the cache upon execution of the same query again. The user must maintain a mapping of the query against the query identifier to be used in the future. If not specified, NCache adds the query string itself as the tag (making it unique for each unique query). For example, a query which returns a Customer is not tagged by the user. The next time the same query is executed, the query string is searched as a tag within cache and if it exists, the result set against it will be returned.

Declaration
public string QueryIdentifier { get; set; }
Property Value
Type Description
System.String

Identifier for a query which is added against the result set of the query in cache.

Back to top Copyright © 2017 Alachisoft