CacheManagerCacheTable Method |
Cache a DataTable to the operational data cache.
See
CacheString(String, String, DateTime, String, String, String) for caching other data, or
CacheObject(Object, String, DateTime, String, String, String) for caching other objects.
Together the
cacheID and
ID should form a unique identifier.
Use
TryGetTable(String, String, DataTable, NullableDateTime) 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 CacheTable(
DataTable tbl,
string cacheID,
DateTime expiryUTC,
string signature,
string description,
string relID
)
Public Function CacheTable (
tbl As DataTable,
cacheID As String,
expiryUTC As DateTime,
signature As String,
description As String,
relID As String
) As Boolean
Parameters
- tbl
- Type: System.DataDataTable
The DataTable 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:
BooleanTrue if the data replaces an existing cached item, else false.
See Also