Implement MSETEX for RedisCluster

We also need to revisit the multi key command logic (MSET, DEL, and
friends). We may want to create a "per slot" distribution mechanism.
This commit is contained in:
michael-grunder
2025-11-11 11:19:46 -08:00
committed by Michael Grunder
parent bd4989e004
commit 41922b6740
5 changed files with 30 additions and 7 deletions
+5
View File
@@ -760,6 +760,11 @@ class RedisCluster {
*/
public function msetnx(array $key_values): RedisCluster|array|false;
/**
* @see \Redis::msetex()
*/
public function msetex(array $key_vals, int|float|array|null $expiry = null): Redis|int|false;
/* We only support Redis::MULTI in RedisCluster but take the argument
so we can test MULTI..EXEC with RedisTest.php and in the event
we add pipeline support in the future. */