public EventHandler<CacheUpdateEvent> PerCachedValue<T>.OnCacheUpdate
Raised for on cache update. Subscribe with the callback type shown in the signature.
Provides per cached value data and the operations listed below. Related types link to the values this API consumes or returns.
Namespace: DreamPoeBot.Loki.Game.Utilities
public class PerCachedValue<T>View DPB2 version →public EventHandler<CacheUpdateEvent> PerCachedValue<T>.OnCacheUpdate
Raised for on cache update. Subscribe with the callback type shown in the signature.
protected PerCachedValue<T>.PerCachedValue(Func<T> producer)
Creates a new PerCachedValue instance using the supplied arguments.
producerFunc<T>public void PerCachedValue<T>.RequestCacheFlush()
Requests cache flush.
protected abstract bool PerCachedValue<T>.ShouldUpdateCache(bool force = false)
Executes the should update cache operation with the supplied arguments.
forceboolReturns: A Boolean result. The member description explains the condition being checked.
public static PerCachedValue<T>.implicit operator T(PerCachedValue<T> pfcv)
Converts this value to the return type shown in the signature.
pfcvPerCachedValue<T>Returns: The T result.
public T PerCachedValue<T>.Value { get; }
Gets value for PerCachedValue.
DPB1 0.3.29.47 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.