Run info stats command problems
Closed this issue · 2 comments
melokki commented
Hello
I am trying to run the info stats
command using tedis, but I does not work how I was expecting
I am running it like this:
const data = await tedis.command("INFO", "STATS");
the result I get is this:
# Stats
Am I doing something wrong?
I tried to run the command like this
const data = await tedis.command("INFO STATS");
but I don't get any output this way
dasoncheng commented
@melokki Thanks for your feedback. After testing, the data returned by the info instruction of redis was not generated in strict accordance with the coding specification, so there were some problems during the analysis. Now it has been compatible and updated to v0.1.8 and can be used normally
const data = await tedis.command("INFO", "STATS");
[
"# Stats",
"total_connections_received:19",
"total_commands_processed:61",
"instantaneous_ops_per_sec:0",
"total_net_input_bytes:1890",
"total_net_output_bytes:10702",
...
]
melokki commented
thank you very much @dasoncheng for your reply and for the rapid fix.