redis-analyzer
redis-analyzer copied to clipboard
unknown command 'MEMORY'?
running the the command:
redis-analyzer -u 192.168.244.141:6379/0 -d 1
occur error:
thread 'main' panicked at 'memory usage command: An error was signalled by the server: unknown command 'MEMORY'', src/libcore/result.rs:999:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
then I set RUST_BACKTRACE=1 execute command cargo run get the following message:
error: could not find `Cargo.toml` in 'xxx/.cargo` or any parent directory
@lurongjiang,
The error unknown command 'MEMORY'
suggests that the MEMORY USAGE
command isn't available in your redis instance.
By chance are you running a version < 4.0.0 which is when the command was added.
@reneklacan what do you think about adding a version check?
By chance are you running a version < 4.0.0 which is when the command was added.
I think that's definitely the case
@reneklacan what do you think about adding a version check?
Great idea