From 11861d95113a385f6eb6360a14ab35582effbf7e Mon Sep 17 00:00:00 2001 From: Pavlo Yatsukhnenko Date: Sun, 17 Apr 2022 17:57:11 +0300 Subject: Issue #1894 Add GETEX, GETDEL commands. --- redis.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'redis.c') diff --git a/redis.c b/redis.c index ac7afd80..ff385b67 100644 --- a/redis.c +++ b/redis.c @@ -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() */ -- cgit v1.2.3