Put
class Put
Store an item in the cache with all tag tracking.
Combines SETEX cache storage with the ZADD tag tracking operations in a single connection checkout for efficiency.
Each tag maintains a sorted set where:
- Members are cache keys (namespaced)
- Scores are TTL timestamps (when the entry expires)
Methods
__construct(StoreContext $context, Serialization $serialization)
Create a new put operation instance.
bool
execute(string $key, mixed $value, int $seconds, array $tagIds)
Execute the put operation with tag tracking.
Details
at line 26
__construct(StoreContext $context, Serialization $serialization)
Create a new put operation instance.
at line 41
bool
execute(string $key, mixed $value, int $seconds, array $tagIds)
Execute the put operation with tag tracking.