Redis – Server
Redis server commands are basically used to manage Redis server. Example Following example explains how we can get all statistics and information about the server redis 127.0.0.1:6379> INFO # Server…
Redis blog…
Redis server commands are basically used to manage Redis server. Example Following example explains how we can get all statistics and information about the server redis 127.0.0.1:6379> INFO # Server…
Redis SELECT command is used to select the DB having the specified zero-based numeric index. New connections always use DB 0. Return Value String reply. Syntax Following is the basic syntax of…
Redis QUIT command asks the server to close the connection. The connection is closed as soon as all pending replies have been written to the client. Return Value String reply OK. Syntax…
Redis PING command is used to check whether the server is running or not. Return Value String reply. Syntax Following is the basic syntax of Redis PING command. redis 127.0.0.1:6379> PING Example redis 127.0.0.1:6379>…
Redis ECHO command is used to print the given string. Return Value String reply. Syntax Following is the basic syntax of Redis ECHO command. redis 127.0.0.1:6379> ECHO SAMPLE_STRING Example redis 127.0.0.1:6379> ECHO "Hello World"…
Redis AUTH command is used to authenticate to the server with the given password. If the password matches the password in the configuration file, the server replies with the OK status code…
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…
Redis SCRIPT LOAD command loads a script into the scripts cache, without executing it. After the specified command is loaded into the script cache, it will be callable using EVALSHA with the…
Redis SCRIPT KILL command kills the currently executing Lua script, assuming no write operation was yet performed by the script. This command is mainly useful to kill a script that is running…
Redis SCRIPT FLUSH command flushes the Lua scripts cache. Syntax Following is the basic syntax of Redis SCRIPT FLUSH command. redis 127.0.0.1:6379> SCRIPT FLUSH Return Value Simple string reply. Example redis 127.0.0.1:6379> SCRIPT FLUSH…