Show / Hide Table of Contents

Class PhaseOneQueryCacher

Short-term (one minute!) cache for archive provider primary keys; to improve performance for requests of later pages of the same archive

Inheritance
object
PhaseOneQueryCacher
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.BusinessLogic.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, 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

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top