Report inconsistency in the command `LRU`
This issue is all about ensuring we are as close to Redis as possible. The command in focus for this issue is LRU.
Go through the official documentation of the command LRU on Redis and identify the inconsistencies. The inconsistencies could be in
- unhandled edge case
- unexpected behavior
- unsupported option
Because we are trying to be compatible with Redis v7.2.5, I would recommend you try out different variants of the command with different inputs on that specific version. The instructions on running Redis v7.2.5 locally
Once you find the discrepancy, you can either
- raise an issue on Dice repository with details, or
- try to fix it yourself and raise a PR
If you are raising the issue, make sure you provide the details such as
- use the template and provide the following details
- steps to reproduce (series of commands)
- observed output on DiceDB
- observed output on Redis v7.2.5
Also, feel free to update the documentation and raise the PR in the docs repository.
You will need to go deeper into the command make sure you are covering all cases and reporting the inconsistencies or fixing them. The deeper the work, the better our stability will be. Also, it is possible that we do not find any discrepancies, so please mention the same in the comment on this issue. Mention the PR or issue links that you create under this issue.
Hi @arpitbbhayani can i take this up? thanks!
@Abh-ay go for it!
Hi @arpitbbhayani @JyotinderSingh @soumya-codes ,
As I saw in redis docs and in cli I'm not able to find as such regarding this LRU command.
While they implemented a various policy and evict key according to the same.
Refer : https://redis.io/blog/cache-eviction-strategies/.
I'm bit confused why we implemented LRU command? :thinking:
as of now should we go for implement logic of various policies and then based on these policies we will implement this LRU logic?
And as currently on latest master LRU command deletes all key from db
@Abh-ay I guess you're referring to these eviction policies from Redis. I would suggest to wait for till we refurbish the store and maybe then pick one-by-one eviction policies. @soumya-codes your thoughts?
Yes @AshwinKul28 I referred this doc, Just want to confirm are we having any plan to raise separate issues for different policies or implement one by one in this issue only? and also this issue for report inconsistency in LRU only but I don't think we need to verify this yet. and any plan to prioritize some policies to implement or any index which we need to follow for implement mentioned policies? let me know so we can proceed further...
Hi @arpitbbhayani , I would like to work on this, can you assign me this one.
hi @arpitbbhayani
I would like to work on this, can you please assign this to me?
It's the only remaining unassigned issue which is a good-first-issue
Hey @arpitbbhayani , can I take this up?
@arpitbbhayani I'm still waiting to get your response, want to take this up
@srikomm @arpitbbhayani @JyotinderSingh can I please take this up?
@shashank-priyadarshi I'm waiting from a long time to take this up :)
@shashank-priyadarshi Can i take this up?
Hi @arpitbbhayani - Can I pick if no one is working on this?
Hi @arpitbbhayani ,
I’ve reviewed the Redis LRU command and tested its behavior on Redis v7.2.5. I’ve identified potential discrepancies and have ideas to improve compatibility with DiceDB. Please assign this issue to me, and I’ll ensure all edge cases are thoroughly addressed.