diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2021-01-17 17:27:30 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2021-01-17 21:44:04 +0300 |
commit | a534a2c36bb2fab0b27fbd651ae9f64115a2821e (patch) | |
tree | 544e584d78e402a3a4a2edd60ecbfe1907bdde96 /redis.c | |
parent | a024a9a2bcbdd92c86656223e06a203f9f0a6022 (diff) |
[WIP] Issue #1894
Add Redis::zMscore command.
Diffstat (limited to 'redis.c')
-rw-r--r-- | redis.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -441,6 +441,7 @@ static zend_function_entry redis_functions[] = { PHP_ME(Redis, zCount, arginfo_key_min_max, ZEND_ACC_PUBLIC) PHP_ME(Redis, zIncrBy, arginfo_zincrby, ZEND_ACC_PUBLIC) PHP_ME(Redis, zLexCount, arginfo_key_min_max, ZEND_ACC_PUBLIC) + PHP_ME(Redis, zMscore, arginfo_key_members, ZEND_ACC_PUBLIC) PHP_ME(Redis, zPopMax, arginfo_key, ZEND_ACC_PUBLIC) PHP_ME(Redis, zPopMin, arginfo_key, ZEND_ACC_PUBLIC) PHP_ME(Redis, zRange, arginfo_zrange, ZEND_ACC_PUBLIC) @@ -2250,6 +2251,13 @@ PHP_METHOD(Redis, zScore) } /* }}} */ +/* {{{ proto array Redis::zMscore(string key, string member0, ...memberN) */ +PHP_METHOD(Redis, zMscore) +{ + REDIS_PROCESS_KW_CMD("ZMSCORE", redis_key_varval_cmd, redis_mbulk_reply_double); +} +/* }}} */ + /* {{{ proto long Redis::zRank(string key, string member) */ PHP_METHOD(Redis, zRank) { REDIS_PROCESS_KW_CMD("ZRANK", redis_kv_cmd, redis_long_response); |