diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-09-08 23:43:13 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2014-09-08 23:43:13 +0400 |
commit | 837e44358e5b9ed6b6921fee356769ac9e3c66d6 (patch) | |
tree | 2d4bd9a0a478a92670934fe6b38403cd64050013 /php_redis.h | |
parent | ebb354193ad8e80885ba307cfb71476da633faa6 (diff) |
Support for the "command" command.
This is a simple addition that allows a client to call any given
Redis command by sending the command name followed by a list of
arguments.
This is useful for the cases where there are new commands in Redis
that have not yet been specifically implemented in phpredis, or
if you want to use phpredis as a pass-through where the commands
and arguments are coming from somewhere else (e.g. monitor logs, etc).
Diffstat (limited to 'php_redis.h')
-rw-r--r-- | php_redis.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/php_redis.h b/php_redis.h index 23e26310..3c1a41ab 100644 --- a/php_redis.h +++ b/php_redis.h @@ -212,6 +212,8 @@ PHP_METHOD(Redis, isConnected); PHP_METHOD(Redis, getPersistentID); PHP_METHOD(Redis, getAuth); +PHP_METHOD(Redis, command); + #ifdef PHP_WIN32 #define PHP_REDIS_API __declspec(dllexport) #else |