Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2022-10-01 20:25:54 +0300
committerMichael Grunder <michael.grunder@gmail.com>2022-10-01 20:42:23 +0300
commit643005080839b35c40d78af40eda3e2743ad4d6f (patch)
tree51a2f7e4c3ad1fe09ef09119efb69d3075265eb8 /cluster_library.c
parent239678a03bb9efcd30893a99c37ba62d22d22b5d (diff)
SINTERCARD and ZINTERCARD commands
Implement Redis 7.0.0 commands SINTERCARD and ZINTERCARD.
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cluster_library.c b/cluster_library.c
index f11c2dcb..6e69c518 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -530,6 +530,10 @@ unsigned short cluster_hash_key(const char *key, int len) {
return crc16((char*)key+s+1,e-s-1) & REDIS_CLUSTER_MOD;
}
+unsigned short cluster_hash_key_zstr(zend_string *key) {
+ return cluster_hash_key(ZSTR_VAL(key), ZSTR_LEN(key));
+}
+
/* Grab the current time in milliseconds */
long long mstime(void) {
struct timeval tv;