redis类
			| 版本 | 1.0+ | 
| 命名空间 | boa\cache\driver | 
| 文件 | boa/cache/driver/redis.php | 
| 说明 | redis缓存驱动类 | 
配置
										| 配置项 | 默认值 | 类型 | 说明 | 
|---|---|---|---|
| server | ['127.0.0.1', 6379, 0] | array | 服务器,4个元素分别表示:
  | 
						
| expire | 0 | int | 缓存时长(秒),0=不限 | 
| prefix | string | 缓存前缀 | |
| persist | true | bool | 是否持久连接 | 
| timeout | 0 | int | 连接超时(秒),0=默认 | 
| option | [] | array | 附加选项 | 
目录
				| 方法 | 说明 | 
|---|---|
| __construct() | 初始化 | 
| get() | 读取缓存 | 
| set() | 设置缓存 | 
| del() | 删除缓存 | 
| clear() | 清理缓存 | 
方法
							
				| 说明 | ||||
|---|---|---|---|---|
| 初始化 | ||||
| 参数 | 必须 | 默认值 | 类型 | 说明 | 
| $cfg | Y | array | 配置数据 | |
| 说明 | ||||
|---|---|---|---|---|
| 读取缓存 | ||||
| 参数 | 必须 | 默认值 | 类型 | 说明 | 
| $name | Y | string | 缓存键名 | |
| 返回值 | ||||
| 返回缓存结果(mixed) | ||||
| 说明 | ||||
|---|---|---|---|---|
| 设置缓存 | ||||
| 参数 | 必须 | 默认值 | 类型 | 说明 | 
| $name | Y | string | 缓存键名 | |
| $val | Y | mixed | 缓存值 | |
| $ttl | 0 | int | 缓存有效期(秒) | |
| 返回值 | ||||
| 成功返回true(bool),失败返回false(bool) | ||||
| 说明 | ||||
|---|---|---|---|---|
| 删除缓存 | ||||
| 参数 | 必须 | 默认值 | 类型 | 说明 | 
| $name | Y | string | 缓存键名 | |
| 返回值 | ||||
| 成功返回true(bool),失败返回false(bool) | ||||
| 说明 | ||||
|---|---|---|---|---|
| 清理缓存 |