Class PhaseOneQueryCacher
Short-term (one minute!) cache for archive provider primary keys; to improve performance for requests of later pages of the same archive
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class PhaseOneQueryCacher : Object
Constructors
PhaseOneQueryCacher()
Construct and set up LRU cleaner timer
Declaration
public PhaseOneQueryCacher()
Properties
IdsCached
Short-term (one minute!) cache for archive provider primary keys; to improve performance for requests of later pages of the same archive
Declaration
public int IdsCached { get; }
Property Value
Type | Description |
---|---|
Int32 |
QueriesCached
Short-term (one minute!) cache for archive provider primary keys; to improve performance for requests of later pages of the same archive
Declaration
public int QueriesCached { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Clear()
Clear the caches; ONLY INTENDED FOR TESTING
Declaration
public void Clear()
GetCachedKeys(String)
Retrieve a list of primary keys from the cache
Declaration
public List<int> GetCachedKeys(string identifierHash)
Parameters
Type | Name | Description |
---|---|---|
String | identifierHash |
Returns
Type | Description |
---|---|
List<Int32> |
SetCachedKeys(String, Int32, List<Int32>)
Store a list of primary keys in the cache; SoftTrigger subscriptions will be adjusted on timer (once per second) to avoid fatal deadlocks between our locks and the SoftTrigger system
Declaration
public void SetCachedKeys(string identifierHash, int tableNumber, List<int> keys)
Parameters
Type | Name | Description |
---|---|---|
String | identifierHash | |
Int32 | tableNumber | |
List<Int32> | keys |
SetCachedKeys(String, String, List<Int32>)
Store a list of primary keys in the cache; SoftTrigger subscriptions will be adjusted on timer (once per second) to avoid fatal deadlocks between our locks and the SoftTrigger system
Declaration
public void SetCachedKeys(string identifierHash, string tableName, List<int> keys)
Parameters
Type | Name | Description |
---|---|---|
String | identifierHash | |
String | tableName | |
List<Int32> | keys |