Is it possible to have redis evict items not by LRU, but by a value stored with the item?
Use case: I want to make a cache driver that measures the cost of re-calculating the item and deduces its business value. Then always evicting the least-valued items instead of the last-recently-used can bring substantial performance gains.
Comment From: itamarhaber
Not, it isn't possible.
Keep in mind that this issue tracker should be used for reporting bugs or proposing improvements to the Redis server. Questions should be directed to the community:
- /r/redis subreddit
- the mailing list
- the
redistag at StackOverflow - the irc channel #redis on freenode.
Comment From: geek-merlin
So it's a feature request for a imho promising improvement with substantial performance gains. Of course it will happen only when someone(tm) implements it.
Comment From: itamarhaber
Thanks for proposing this feature. Apparently, there isn't much interest from the community for user-settable-eviction-order so I'll close this issue. Please feel free to reopen or create a new issue instead if needed.