Class PhaseOneQueryCacher
Short-term (one minute!) cache for archive provider primary keys; to improve performance for requests of later pages of the same archive
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class PhaseOneQueryCacher
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 |
---|---|
int |
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 |
---|---|
int |
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<int> |
SetCachedKeys(string, int, List<int>)
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
[Obsolete("This method is deprecated. Use SetCachedKeys(string identifierHash, string tableName, List<int> keys) instead.")]
public void SetCachedKeys(string identifierHash, int tableNumber, List<int> keys)
Parameters
Type | Name | Description |
---|---|---|
string | identifierHash | |
int | tableNumber | |
List<int> | keys |
SetCachedKeys(string, string, List<int>)
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<int> | keys |