45

欲求不满之 Redis Lua 脚本的执行原理-Java架构的博客

 5 years ago
source link: http://blog.51cto.com/13732225/2308415
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Redis 提供了非常丰富的指令集,但是用户依然不满足,希望可以自定义扩充若干指令来完成一些特定领域的问题。Redis 为这样的用户场景提供了 lua 脚本支持,用户可以向服务器发送 lua 脚本来执行自定义动作,获取脚本的响应数据。Redis 服务器会单线程原子性执行 lua 脚本,保证 lua 脚本在处理的过程中不会被任意其它请求打断。图片比如在《Redis 深度历险》分布式锁小节,我们提到了

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK