class PutMany

Store multiple items in the cache with tags support.

Efficiently stores many items in a single pipelined operation, handling tag assignment and cleanup for all items.

Constants

private CHUNK_SIZE

Methods

__construct(StoreContext $context, Serialization $serialization)

Create a new put many with tags operation instance.

bool
execute(array $values, int $seconds, array $tags)

Execute the putMany operation.

Details

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

Create a new put many with tags operation instance.

Parameters

StoreContext $context
Serialization $serialization

at line 38
bool execute(array $values, int $seconds, array $tags)

Execute the putMany operation.

Parameters

array $values

Array of key => value pairs

int $seconds

TTL in seconds

array $tags

Array of tag names

Return Value

bool

True if successful, false on failure