Temporal Docs PHP SDK API Version 2.20 (latest release) Release notes

Documentation

InMemoryChildWorkflowInvocationCache
in package
implements ChildWorkflowInvocationCacheInterface

FinalYes

Table of Contents

Interfaces

ChildWorkflowInvocationCacheInterface

Properties

$cache  : array<non-empty-string, InvocationFailure|InvocationResult|InvocationMatched>
$dataConverter  : DataConverterInterface
$invoked  : array<string, true>
$sideEffectCursor  : int
$sideEffects  : array<int, InvocationResult>
$versions  : array<string, int>

Methods

__construct()  : mixed
clear()  : void
get()  : InvocationResult|InvocationFailure|InvocationMatched
getVersion()  : int
has()  : bool
hasSideEffect()  : bool
hasVersion()  : bool
nextSideEffect()  : mixed
recordInvoked()  : void
saveCompletion()  : void
saveCompletionWhen()  : void
saveFailure()  : void
saveSideEffect()  : void
saveVersion()  : void
wasInvoked()  : bool

Properties

Methods

saveCompletion()

public saveCompletion(string $workflowType, mixed $value) : void
Parameters
$workflowType : string
$value : mixed

Child workflow result: anything the DataConverter can encode, or an EncodedValues.

saveCompletionWhen()

public saveCompletionWhen(string $workflowType, array<string|int, mixed> $args, mixed $value) : void
Parameters
$workflowType : string
$args : array<string|int, mixed>

Start arguments to byte-match against, encoded via the DataConverter.

$value : mixed

Result returned on a match: anything the DataConverter can encode, or an EncodedValues.

On this page

Search results