Skip to content

Commit db576c3

Browse files
committed
Add description for command config
1 parent b7cc1e2 commit db576c3

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
@@ -2503,6 +2503,22 @@ public function hMset( $key, $hashKeys ) {}
25032503
*/
25042504
public function hMGet( $key, $hashKeys ) {}
25052505

2506+
/**
2507+
* Get or Set the redis config keys.
2508+
*
2509+
* @param string $operation either `GET` or `SET`
2510+
* @param string $key for `SET`, glob-pattern for `GET`. See http://redis.io/commands/config-get for examples.
2511+
* @param string $value optional string (only for `SET`)
2512+
* @return array Associative array for `GET`, key -> value
2513+
* @link http://redis.io/commands/config-get
2514+
* @link http://redis.io/commands/config-set
2515+
* @example
2516+
* <pre>
2517+
* $redis->config("GET", "*max-*-entries*");
2518+
* $redis->config("SET", "dir", "/var/run/redis/dumps/");
2519+
* </pre>
2520+
*/
2521+
public function config( $operation, $key, $value ) {}
25062522
}
25072523

25082524
class RedisException extends Exception {}

0 commit comments

Comments
 (0)