Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2022-04-17 17:57:11 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2022-04-17 17:57:11 +0300
commit11861d95113a385f6eb6360a14ab35582effbf7e (patch)
tree251730a5086e631bbd50503d7a66c35d3d41f924 /redis.c
parent55bf0202dd674c70e147fc50e72298719e23391e (diff)
Issue #1894
Add GETEX, GETDEL commands.
Diffstat (limited to 'redis.c')
-rw-r--r--redis.c15
1 files changed, 15 insertions, 0 deletions
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()
*/