CacheManagerTryGetString Method |
Attempt to retrieve a cached data item. Use
CacheString(String, String, DateTime, String, String, String) to cache the data.
See
TryGetTable(String, String, DataTable, NullableDateTime) for retrieving DataTables, or
TryGetObject(String, String, Type, Object, DateTime) for retrieving other objects.
Together the
cacheID and
ID should form a unique identifier.
Having uniquely identified the item in this manner, the item's expiry and optional signature match are used to determine whether
or not to accept the item as a cache hit and return it.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public bool TryGetString(
string cacheID,
string signature,
out string s,
out DateTime dt
)
Public Function TryGetString (
cacheID As String,
signature As String,
<OutAttribute> ByRef s As String,
<OutAttribute> ByRef dt As DateTime
) As Boolean
Parameters
- cacheID
- Type: SystemString
The ID of the data, should be unique when used in conjunction with the current user ID. - 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. - s
- Type: SystemString
The data retrieved from cache, if a hit was made, else null. - dt
- Type: SystemDateTime
The date/time (UTC) that the item was cached, if a hit was made.
Return Value
Type:
BooleanTrue if a cache hit was made, else false.
See Also