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 – Security Redis database can be secured, such that any client making a connection needs to authenticate before executing a command. To secure Redis, you need to set the password in the config file. Example Following example shows the steps to secure your Redis instance. 127.0.0.1:6379> CONFIG get requirepass 1) “requirepass” 2) “” By […]
Redis – Connections Redis connection commands are basically used to manage client connections with Redis server. Example Following example explains how a client authenticates itself to Redis server and checks whether the server is running or not. redis 127.0.0.1:6379> AUTH “password” OK redis 127.0.0.1:6379> PING PONG Redis Connection Commands Following table lists some basic commands […]