摘要: 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 江山一族 阅读(1871) 评论(0) 推荐(0) 编辑