|
|
|
|
|
by theli0nheart
5193 days ago
|
|
The problem with this implementation is that you can't have multiple entries for items with the same value. For example, you might be doing metrics for each user in a web application, and want to measure access times. The obvious identifier is IP address for the key, and timestamp for the value, but when you insert a new key/value pair into a ZSET, any previous value for the same item will be replaced. Therefore, it makes it kind of difficult to use ZSETS for metrics unless you only care about uniques. |
|