redis
zmlucky
这个作者很懒,什么都没留下…
展开
-
Redis常用命令记录
Redis::set('todaySignFlag_' . $userId, 1); //今日已签到 $dayNum = date("d", time()); //今天是第几天 Redis::rpush('userSignlist_' . $userId, $dayNum); //签到日期列表 Redis::expire('conSignFlag_' . $userId, $...原创 2020-08-31 23:26:12 · 143 阅读 · 0 评论 -
redis数据类型
参考教程:https://www.shiyanlou.com/courses/106 参考教程:https://www.runoob.com/redis/redis-data-types.html Redis 数据类型 Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(集合)及zset(sorted set:有序集合)。 String(字符串)...原创 2019-11-07 18:37:47 · 113 阅读 · 0 评论 -
redis使用--tp5
参考教程:https://www.cnblogs.com/pyspang/p/11185759.html、 <?php namespace app\index\controller; use think\Cache; class Index { public function index() { Cache::store('file')->set('...原创 2019-11-07 18:26:36 · 120 阅读 · 0 评论 -
redis安装
参考教程:https://www.runoob.com/redis/redis-install.html Window 下安装 下载地址:https://github.com/MSOpenTech/redis/releases。 打开一个 cmd 窗口 使用 cd 命令切换目录到 文件目录 运行: redis-server.exe redis.windows.conf 如果想方...原创 2019-11-07 18:22:54 · 122 阅读 · 0 评论