09 2020 档案

摘要:const redis = require('ioredis'); const clienId = Math.random() * 100; //模拟客户端Id const lockKey = 'testKey' try { const result = await redis.setnx(lock 阅读全文
posted @ 2020-09-15 18:11 江山一族 阅读(1911) 评论(0) 推荐(0)
摘要:1。说明,redis 位图存储节省内存,用户id:156,1333; 如果用户登录,根据日期存储为1 setbit 20209001 156 1 ;//id为156的用户在1月1号登录了 setbit 20200901 1333 1; //id为1333的用户在1月1号登录了 setbit 2020 阅读全文
posted @ 2020-09-14 17:45 江山一族 阅读(1364) 评论(0) 推荐(0)