diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2022-04-11 22:59:01 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2022-04-12 22:00:04 +0300 |
commit | fe397371ef1504b90c484df93c30a596aa201ce1 (patch) | |
tree | 94d345d0677e6b82ca8398163ecc1952ebac74db /redis.c | |
parent | c65772fb4d954933a503494b5d5413c3948ece6a (diff) |
Issue #1894
Add Redis::hRandField command
Diffstat (limited to 'redis.c')
-rw-r--r-- | redis.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2219,6 +2219,14 @@ PHP_METHOD(Redis, hMset) } /* }}} */ +/* {{{ proto bool Redis::hRandField(string key, [array $options]) */ +PHP_METHOD(Redis, hRandField) +{ + REDIS_PROCESS_CMD(hrandfield, redis_hrandfield_response); +} +/* }}} */ + + /* {{{ proto long Redis::hstrlen(string key, string field) */ PHP_METHOD(Redis, hStrLen) { REDIS_PROCESS_CMD(hstrlen, redis_long_response); |