config 命令/方法/函数

Description

Get or Set the redis config keys.

取得或者设置REIDS系统配置KEYS。


Parameters

operation (string) either GET or SET

key string for SET, glob-pattern for GET. See http://redis.io/commands/config-get for examples.

value optional string (only for SET)


Return value

Associative array for GET, key -> value

bool for SET


Examples

$redis->config("GET", "*max-*-entries*");

$redis->config("SET", "dir", "/var/run/redis/dumps/");