Click or drag to resize

CacheManagerCacheString Method

Cache a string to the operational data cache. See CacheTable(DataTable, String, DateTime, String, String, String) for caching DataTables, or CacheObject(Object, String, DateTime, String, String, String) for caching other objects. Together the cacheID and ID should form a unique identifier. Use TryGetString(String, String, String, DateTime) to retrieve the cached DataTable from cache.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public bool CacheString(
	string s,
	string cacheID,
	DateTime expiryUTC,
	string signature,
	string description,
	string relID
)

Parameters

s
Type: SystemString
The string to cache.
cacheID
Type: SystemString
The ID of the data, should be unique when used in conjunction with the current user ID.
expiryUTC
Type: SystemDateTime
The UTC date/time that the cache should expire.
signature
Type: SystemString
Optional data signature for detecting changes in the data characteristics that should cause the item to expire -- typically the SQL statement used to generate the data.
description
Type: SystemString
An optional description of the cached data.
relID
Type: SystemString
An optional value defining whether this cached data relates to a specific record in the database.

Return Value

Type: Boolean
True if the data replaces an existing cached item, else false.
See Also