Redis – Server Client Kill Command
Redis CLIENT KILL command closes a given client connection. Return Value Simple string reply − OK if the connection exists and has been closed. Syntax Following is the basic syntax of Redis CLIENT…
Redis CLIENT KILL command closes a given client connection. Return Value Simple string reply − OK if the connection exists and has been closed. Syntax Following is the basic syntax of Redis CLIENT…
Redis BGSAVE command saves the DB in the background. The OK code is immediately returned. Redis forks, the parent continues to serve the clients, the child saves the DB on the disk,…
Redis BGREWRITEAOF command instructs Redis to start an Append Only File rewrite process. The rewrite will create a small optimized version of the current Append Only File. If BGREWRITEAOF fails, no data…
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…