We use Elasticache Redis node to store data.
All keys have same format:
- Key is md5 hash - 128 bits (16 bytes, 32 string characters bytes).
- Value is time stamp string - 19 bytes.
In total, key size is 32+19=51 bytes
We have 84 917 361
million of keys.
I assume, total memory, that Redis shell consume, is close to 84917361*51 = 4.03 gb
.
Actually, it takes 11.07 gb
.
Output of info
command:
used_memory_human:11.07G
- On what is spent rest of the memory,
7 gb
? - Is there a way to store
md5
as 16 bytes hash, not string with 32 characters?
Thanks, any help is highly appreciated.