Redis – Scripting 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. Syntax Following is the basic syntax of EVAL command. redis 127.0.0.1:6379> EVAL script numkeys key [key …] arg [arg …] Example Following example explains […]
Author Archives: user
Redis – Transactions Redis transactions allow the execution of a group of commands in a single step. Following are the two properties of Transactions. All commands in a transaction are sequentially executed as a single isolated operation. It is not possible that a request issued by another client is served in the middle of the […]
Redis – Backup Redis SAVE command is used to create a backup of the current Redis database. Syntax Following is the basic syntax of redis SAVE command. 127.0.0.1:6379> SAVE Example Following example creates a backup of the current database. 127.0.0.1:6379> SAVE OK This command will create a dump.rdb file in your Redis directory. Restore Redis […]