Skip to content

Commit 77d662a

Browse files
committed
Add description for command config
1 parent fc48aab commit 77d662a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

redisphp.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,22 @@ public function hMset( $key, $hashKeys ) {}
24452445
*/
24462446
public function hMGet( $key, $hashKeys ) {}
24472447

2448+
/**
2449+
* Get or Set the redis config keys.
2450+
*
2451+
* @param string $operation either `GET` or `SET`
2452+
* @param string $key for `SET`, glob-pattern for `GET`. See http://redis.io/commands/config-get for examples.
2453+
* @param string $value optional string (only for `SET`)
2454+
* @return array Associative array for `GET`, key -> value
2455+
* @link http://redis.io/commands/config-get
2456+
* @link http://redis.io/commands/config-set
2457+
* @example
2458+
* <pre>
2459+
* $redis->config("GET", "*max-*-entries*");
2460+
* $redis->config("SET", "dir", "/var/run/redis/dumps/");
2461+
* </pre>
2462+
*/
2463+
public function config( $operation, $key, $value ) {}
24482464
}
24492465

24502466
class RedisException extends Exception {}

0 commit comments

Comments
 (0)