Redis 操作

引入

use zxf\Database\Redis;

$redis = Redis::getInstance();
OR 设置自定义参数
$redis = Redis::getInstance($config, $attr = array());