Skip to main content

LocalChangeCache<T>

LocalChangeCache<T>

Properties

localCache

T localCache { get; }

Methods

PushLocalCacheToInflight

T PushLocalCacheToInflight(uint updateID)

RemoveUpdateFromInflight

T RemoveUpdateFromInflight(uint updateID)

Clear

void Clear()

UpdateLocalCache

void UpdateLocalCache(Func<T, T> lambda)

LookForValueInCache

bool LookForValueInCache(Func<T, bool> checkIfValueSet, Func<T, TValue> getValue, TValue& value, bool inflightOnly = false)

LookForValueInCache

TValue LookForValueInCache(TValue defaultValue, Func<T, bool> checkIfValueSet, Func<T, TValue> getValue)

ValueExistsInCache

bool ValueExistsInCache(Func<T, bool> checkIfValueSet, bool inflightOnly = false)

IterateThroughCacheOldestFirst

void IterateThroughCacheOldestFirst(Func<T, bool> operateOnEntry, bool inflightOnly = false)

IterateThroughCacheNewestFirst

void IterateThroughCacheNewestFirst(Func<T, bool> operateOnEntry, bool inflightOnly = false)