How does redis store strings internally?
-
For strings representing 64-bit signed integers, the type of strings will be int
For strings whose length is less or equal to 44 bytes (this used to be 39 bytes in Redis 3.x); this type of encoding is more efficient in memory usage and performance, the strings type is embstr
For strings whose length is greater than 44 bytes, the type is raw
© Lightnetics 2024