Advanced Lua scripting with Redis

Now that we have a basic understanding of Lua scripting in Redis, we will see how we might refactor a few examples from the previous chapters to use Lua scripts. We'll also note potential problems that might occur while using Lua scripting including introducing hidden complexities and harmful performance implications of these changes. Lua scripting is a valuable tool, but must be used in the context of its limitations with server-side scripts in Redis.

In Chapter 3, Managing RAM: Tips and Techniques for Redis Memory Management, we will modified our tea and coffee Python code to use Lua scripts for bitmap operations, and finally, in Chapter 4, Programming Redis Part One: Redis Core, Clients, and Languages, we modified ...

Get Mastering Redis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.