sewenew / redis-protobuf

Redis module for reading and writing Protobuf messages
Apache License 2.0
203 stars 22 forks source link

Use zmalloc to allocate memory #8

Open sewenew opened 5 years ago

sewenew commented 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.

Instead, we should use the zmalloc method to allocate memory, so that the INFO MEMORY command can show us the correct memory usage.