Property QueryIdentifier
QueryIdentifier
Identifier for a query which is added as a Tag against the result set of the query in the cache. This must be unique for each unique query. The QueryIdentifier is used to regenerate the result set from the cache upon execution of the same query. 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 the 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. |