Basic redis-server infomation
redis_version:7.0.7
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:2260280010e18db8
redis_mode:standalone
os:Linux 5.4.0-1092-aws x86_64
arch_bits:64
monotonic_clock:POSIX clock_gettime
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:7.5.0
process_id:14138
process_supervised:no
run_id:20249b630381b649521b3eceddedc6487757331d
When I use info to show maxmemory policy I got below
maxmemory_human:16.00G
maxmemory_policy:volatile-lru
so I try to set the maxmemory_policy config in command with config set maxmemory_policy volatile-lru but it failed. because the proper command should be config set maxmemory-policy volatile-lru. so could we print the maxmemory-policy instead of maxmemory_policy when we type info?
127.0.0.1:9195> config set maxmemory_policy volatile-lru
(error) ERR Unknown option or number of arguments for CONFIG SET - 'maxmemory_policy'
Comment From: zuiderkwast
Unfortunately it would be a breaking change. It would break scripts that parse these info fields.
Another possibilty is to make config set more tolerant and make it accept maxmemory_policy an alias for maxmemory-policy and similar for other config options. I don't know if it would be acceptable.
Comment From: oranagra
right, we can't change these now.