w3resource

Redis Server: SHUTDOWN

SHUTDOWN [NOSAVE] [SAVE]

Redis SHUTDOWN command is used to stop all clients, perform a blocking SAVE if at least one save point is configured, flush all append only files if AOF is enabled and quit the server.

Syntax:

SHUTDOWN [NOSAVE] [SAVE]

Available since

1.0.0.

Return Value

Simple string replies on error. On success, nothing is returned since the server quits and the connection is closed.

Return Value Type

String

Example: Redis SHUTDOWN

redis 127.0.0.1:6379> SHUTDOWN

Previous: SAVE
Next: SLAVEOF



Follow us on Facebook and Twitter for latest update.