DiceDB / dice

DiceDB is a redis-compliant, in-memory, real-time, and reactive database optimized for modern hardware and for building and scaling truly real-time applications.
https://dicedb.io/
Other
5.99k stars 945 forks source link

Feature : Add Support for OBJECT REFCOUNT #965

Open sashpawar11 opened 5 days ago

sashpawar11 commented 5 days ago

This feature adds support to one of the commands reported on https://github.com/DiceDB/dice/issues/934 i.e. OBJECT REFCOUNT <key>

Expected output

If LRU policy exists , redis returns the access frequency of a key, if the LFU (Least Frequently Used) eviction policy is enabled.
If LRU policy does not exist , redis returns the following message:

(error) ERR An LFU maxmemory policy is not selected, access frequency not tracked. Please note that when switching between policies at runtime LRU and LFU data will take some time to adjust.

More about the command - 'OBJECT'

sashpawar11 commented 5 days ago

Hi @lucifercr07 , @JyotinderSingh - please assign this issue to @apoorvyadav1111 , we have discussed it and he will be working on this sub-command.

Thankyou.

JyotinderSingh commented 5 days ago

Hi @lucifercr07 , @JyotinderSingh - please assign this issue to @apoorvyadav1111 , we have discussed it and he will be working on this sub-command.

Thankyou.

@apoorvyadav1111 please comment on this issue so that it can be assigned to you

apoorvyadav1111 commented 5 days ago

Hi, Please assign this to me. Thanks