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.dll
Syntax
[SoInject("Database")]
public class PhaseOneQueryCacher

Constructors

PhaseOneQueryCacher()

Construct and set up LRU cleaner timer

Declaration
public PhaseOneQueryCacher()

Properties

IdsCached

Declaration
public int IdsCached { get; }
Property Value
Type Description
Int32

QueriesCached

Declaration
public int QueriesCached { get; }
Property Value
Type Description
Int32

Methods

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

Extension Methods

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