An implementation of multimap with per-item expiration backed up by Redis
An implementation of multimap with per-item expiration backed up by Redis. Description This lib is based on: https://quickleft.com/blog/how-to-create-and-expire-list-items-in-redis/ without the need for an extra job to delete old items. Values are internally stored on Redis using Sorted Sets : key1: { (score1, value1), (score2, value2), … } key2: { (score3, value3), (score4, value4), … } … Where the score is the timestamp when the value was added. We use the timestamp to filter expired values and when an insertion happens, […]
Read more