redis-cli -h 192.168.0.34 -p 4503

获取当前值:

config get maxmemory

设置新值:

config set maxmemory 1073741824

 

动态修改dump策略:

config set save "900 10000000000 300 10000000000 60 10000000000"

看看是否生效:

config get save