Difference between Memory use by key vs total memory

Hi,
I have a question, anyone help me explain the difference between Memory use by key vs total memory.

Thank,

Hi @vunamhung
Memory used by keys simply refers to the amount of memory used up by all the keys in your Redis database. The amount of memory a Redis key takes is directly proportional to how the number of characters in the key. You can check the doc here Redis data types introduction under Redis keys to learn more about Redis keys and memory usage.

About Total memory, I’m not sure what Redis client you’re using but this most likely refers to the amount of memory Your Redis data has taken up for both the keys and their respective values.

Thank you for reply, I will check the doc you send me.