
1 Duolingo 2017-09-14 20:09:50 +08:00 via iPhone redis 是单线程的,所以不会(我觉得 |
2 flynnX 2017-09-14 20:24:32 +08:00 多个进程同时操作也是分先后的,Redis 只能一次处理一个命令,不会造成不一致的情况 |
4 flynnX 2017-09-14 20:27:51 +08:00 https://redis.io/commands/rpoplpush 可以使用这个命令 > Atomically returns and removes the last element (tail) of the list stored at source, and pushes the element at the first element (head) of the list stored at destination. |
6 nooper 2017-09-14 20:54:08 +08:00 via iPad transactions 添加 watch |
7 JingKeWu 2017-09-15 10:07:02 +08:00 用 lua 我们也是用 lua 来保证原子性 eval 函数 |