class Get

Retrieve an item from the cache by key.

Methods

__construct(StoreContext $context, Serialization $serialization)

Create a new get operation instance.

mixed
execute(string $key)

Execute the get operation.

Details

at line 19
__construct(StoreContext $context, Serialization $serialization)

Create a new get operation instance.

Parameters

StoreContext $context
Serialization $serialization

at line 31
mixed execute(string $key)

Execute the get operation.

Parameters

string $key

The cache key (without prefix)

Return Value

mixed

The cached value, or null if not found or on error