diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2022-04-17 17:57:11 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2022-04-17 17:57:11 +0300 |
commit | 11861d95113a385f6eb6360a14ab35582effbf7e (patch) | |
tree | 251730a5086e631bbd50503d7a66c35d3d41f924 /redis.c | |
parent | 55bf0202dd674c70e147fc50e72298719e23391e (diff) |
Issue #1894
Add GETEX, GETDEL commands.
Diffstat (limited to 'redis.c')
-rw-r--r-- | redis.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -961,6 +961,21 @@ PHP_METHOD(Redis, get) } /* }}} */ +/* {{{ proto string Redis::getDel(string key) + */ +PHP_METHOD(Redis, getDel) +{ + REDIS_PROCESS_KW_CMD("GETDEL", redis_key_cmd, redis_string_response); +} +/* }}} */ + +/* {{{ proto string Redis::getEx(string key [, array $options = []]) + */ +PHP_METHOD(Redis, getEx) +{ + REDIS_PROCESS_CMD(getex, redis_string_response); +} +/* }}} */ /* {{{ proto string Redis::ping() */ |