Skip to content

Commit 6bfe571

Browse files
committed
Add rawCommand
1 parent ff55c8b commit 6bfe571

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Redis.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3176,6 +3176,19 @@ public function pfCount( $key ) {}
31763176
* $redis->pfCount('key3'); // int(3)
31773177
*/
31783178
public function pfMerge( $destkey, array $sourcekeys ) {}
3179+
3180+
/**
3181+
* Send arbitrary things to the redis server.
3182+
* @param string $command Required command to send to the server.
3183+
* @param mixed,... $arguments Optional variable amount of arguments to send to the server.
3184+
* @return mixed
3185+
* @example
3186+
* <pre>
3187+
* $redis->rawCommand('SET', 'key', 'value'); // bool(true)
3188+
* $redis->rawCommand('GET", 'key'); // string(5) "value"
3189+
* </pre>
3190+
*/
3191+
public function rawCommand( $command, $arguments ) {}
31793192
}
31803193

31813194
class RedisException extends Exception {}

0 commit comments

Comments
 (0)