摘要: 分布式锁客户端执行如下命令,来获取锁和释放锁。random = random()ok = (Set key random PX 2000ms NX)if (ok) { //do something if (redis->get(key) == random) { (del ... 阅读全文
posted @ 2015-09-18 19:51 春文秋武 阅读(135) 评论(0) 推荐(0) 编辑