Saving memory in redis and python with struct.pack
In redis, every object is either a binary-safe string or collection thereof. Even if you're storing numbers from your client library or using the INCR/DECR counter within redis, the actual values are stored in memory as strings. In some cases, this may be fine; however, if you are storing many numbers, whole or decimal,