redis的安装使用
redis 全称 REmote DIctionary Server ,是key-value存储系统
具有五种类型:string 字符串 hash 散列 list 列表 set 集合 sorted set 有序集合
性能极高:Redis能读的速度是110000次/s 写的速度是81000次/s
redis的windows版安装教程 http://www.runoob.com/redis/redis-install.html
redis的使用方法:
打开cmd窗口 使用cd命令切换目录 到 c:\redis运行 redis-server.exe redis.windows.conf
再从新打开一个cmd窗口 切换到redis目录下运行 redis-cli.exe -h 127.0.0.1 -p 6379
设置键值set mykey abc 取出键值对 get mykey
安装php 扩展 https://blog.csdn.net/voke_/article/details/78754639
注意事项:
MSVC11(visualC++ 2012) x86 API20121212 TS VC11 更加PHP版本号编译版本号和cpu架构
特别注意以php版本的architecture是x86还是64为准,不能以操作系统为准
PHP redis扩展:https://www.cnblogs.com/imxiu/p/3554805.html