logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Redis使用Lua脚本时为什么能保证原子性

昨天面试问了一道题,让我猝不及防,说到了Lua脚本,然后面试官问我Redis使用Lua脚本为什么能保证原子性?看一看下官方的说明:“Atomicity of scriptsRedis uses the same Lua interpreter to run all the commands. Also Redis guarantees that a script is executed in an

#lua#redis#java
到底了