class PutMany

Store multiple items in the cache with all tag tracking.

Combines the ZADD operations for all keys to all tags with SETEX for each cache value in a single pipeline for efficiency.

Methods

__construct(StoreContext $context, Serialization $serialization)

No description

bool
execute(array $values, int $seconds, array $tagIds, string $namespace)

Execute the putMany operation with tag tracking.

Details

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

No description

Parameters

StoreContext $context
Serialization $serialization

at line 36
bool execute(array $values, int $seconds, array $tagIds, string $namespace)

Execute the putMany operation with tag tracking.

Parameters

array $values

Key-value pairs (keys already namespaced)

int $seconds

TTL in seconds

array $tagIds

Array of tag identifiers

string $namespace

The namespace prefix for keys (for building namespaced keys)

Return Value

bool

True if all operations successful