Add
class Add
Store an item in the cache if it doesn't exist, with all tag tracking.
Publish tag entries only when SET NX creates the value. A failed add must not shorten an existing entry's lifetime and make pruning hide a live value.
Methods
__construct(StoreContext $context, Serialization $serialization)
Create a new add operation instance.
bool
execute(string $key, mixed $value, int $seconds, array $tagIds)
Execute the add operation with tag tracking.
string
addWithTagsScript()
Register memberships only after creating the value.
Details
at line 22
__construct(StoreContext $context, Serialization $serialization)
Create a new add operation instance.
at line 37
bool
execute(string $key, mixed $value, int $seconds, array $tagIds)
Execute the add operation with tag tracking.
at line 109
protected string
addWithTagsScript()
Register memberships only after creating the value.