class UniqueJobPayloadContext

Properties

static protected null|WeakMap<object, array{laravel_unique_job_cache_store: ?string, laravel_unique_job_key: string}> $metadata

The unique job metadata waiting to be consumed during payload creation.

Methods

static void
register(ShouldBeUnique $job)

Register unique job metadata for payload creation.

static array|null
consume(object $job)

Consume unique job metadata for payload creation.

static string|null
getCacheStore(ShouldBeUnique $job)

Determine the cache store used by the unique job to acquire locks.

static void
flushState()

Flush all static state.

Details

at line 22
static void register(ShouldBeUnique $job)

Register unique job metadata for payload creation.

Parameters

ShouldBeUnique $job

Return Value

void

at line 39
static array|null consume(object $job)

Consume unique job metadata for payload creation.

Parameters

object $job

Return Value

array|null

at line 69
static protected string|null getCacheStore(ShouldBeUnique $job)

Determine the cache store used by the unique job to acquire locks.

Parameters

ShouldBeUnique $job

Return Value

string|null

at line 79
static void flushState()

Flush all static state.

Return Value

void