redis批量删除key,与出现的问题解决(MISCONF Redis is configured to save RDB snapshots)

来源:互联网 发布:vczh 知乎 编辑:程序博客网 时间:2024/05/16 06:30
redis批量删除key,与出现的问题解决(MISCONF Redis is configured to save RDB snapshots)
 
删除key

redis 127.0.0.1:6379> flushdb(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.redis 127.0.0.1:6379> dbsize(integer) 2


使用如下命令解决:
 
config set stop-writes-on-bgsave-error no