tp5使用redis
1、redis 连接配置
直接在config文件中添加总配置,在使用的时候直接引入
2、简单使用(使用string类型)
3、使用其他类型
因为引入的文件中只包含了has() get() set() inc() dec() rm() clear() 方法,于是不能使用其他指令或使用其他类型,需要使用hanlder();
hander的方法说明:
直接在config文件中添加总配置,在使用的时候直接引入
因为引入的文件中只包含了has() get() set() inc() dec() rm() clear() 方法,于是不能使用其他指令或使用其他类型,需要使用hanlder();
hander的方法说明: