DPB1Class · Game state and actions

PerCachedValue<T>

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>
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

6 declared here

OnCacheUpdate

EventLink ↗
public EventHandler<CacheUpdateEvent> PerCachedValue<T>.OnCacheUpdate

Raised for on cache update. Subscribe with the callback type shown in the signature.

Event handler type: EventHandler<CacheUpdateEvent>
Explore CacheUpdateEvent → members & methods

Provides cache update event data and the operations listed below. Related types link to the values this API consumes or returns.

PerCachedValue

MethodLink ↗
protected PerCachedValue<T>.PerCachedValue(Func<T> producer)

Creates a new PerCachedValue instance using the supplied arguments.

Parameters

producer
Parameter type: Func<T>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies producer.

RequestCacheFlush

MethodLink ↗
public void PerCachedValue<T>.RequestCacheFlush()

Requests cache flush.

Return type: voidNo return value.

ShouldUpdateCache

MethodLink ↗
protected abstract bool PerCachedValue<T>.ShouldUpdateCache(bool force = false)

Calls ShouldUpdateCache on PerCachedValue<T> with force and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

force
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies force. Optional; the default is shown in the signature.

Returns: A Boolean result. The member description explains the condition being checked.

op_Implicit

MethodLink ↗
public static PerCachedValue<T>.implicit operator T(PerCachedValue<T> pfcv)

Converts this value to the return type shown in the signature.

Return type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

pfcv
Parameter type: PerCachedValue<T>

Specifies pfcv.

Returns: The T result.

Value

PropertyLink ↗
public T PerCachedValue<T>.Value { get; }

Reads value on PerCachedValue<T> as T. The exact type and accessors are shown below.

Value type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.