Open sewenew opened 5 years ago
By now, we use new to allocate memory, however, in this way, the INFO command cannot show the correct memory usage of the Redis instance.
new
INFO
Instead, we should use the zmalloc method to allocate memory, so that the INFO MEMORY command can show us the correct memory usage.
zmalloc
INFO MEMORY
By now, we use
new
to allocate memory, however, in this way, theINFO
command cannot show the correct memory usage of the Redis instance.Instead, we should use the
zmalloc
method to allocate memory, so that theINFO MEMORY
command can show us the correct memory usage.