READONLY
Syntax
READONLY yes|no
Description
Puts the server into readonly mode. While in this mode all commands that change data will fail such as SET and DEL.
Examples
READONLY yes # turns on readonly mode
READONLY no # turns off readonly mode
Related Commands
CONFIG GET
CONFIG REWRITE
CONFIG SET
FLUSHDB
GC
READONLY
INFO
ROLE
SERVER