class Cache implements ExecutionScopedAttribute

Methods

__construct(UnitEnum|string|null $store = null, bool $memo = false)

Create a new class instance.

bool
isExecutionScoped()

Determine whether the resolved value belongs to the current execution.

static Repository
resolve(Cache $attribute, Container $container)

Resolve the cache store.

Details

at line 19
__construct(UnitEnum|string|null $store = null, bool $memo = false)

Create a new class instance.

Parameters

UnitEnum|string|null $store
bool $memo

at line 28
bool isExecutionScoped()

Determine whether the resolved value belongs to the current execution.

Return Value

bool

at line 36
static Repository resolve(Cache $attribute, Container $container)

Resolve the cache store.

Parameters

Cache $attribute
Container $container

Return Value

Repository