Since Redis is single-threaded, everything is atomic. 转载于:https://www.cnblogs.com/zhuangzebo/p/7593974.html