diff options
author | michael-grunder <michael.grunder@gmail.com> | 2022-10-01 20:25:54 +0300 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2022-10-01 20:42:23 +0300 |
commit | 643005080839b35c40d78af40eda3e2743ad4d6f (patch) | |
tree | 51a2f7e4c3ad1fe09ef09119efb69d3075265eb8 /cluster_library.c | |
parent | 239678a03bb9efcd30893a99c37ba62d22d22b5d (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.c | 4 |
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; |