Redis Scripting

Last Updated : 26 Feb 2026

Redis scripting is used to evaluate scripts using the Lua interpreter. It is built into Redis starting from version 2.6.0. The command used for scripting is EVAL command.

See the syntax of EVAL command.

Syntax

Example

Let's take an example to see how Redis scripting works: