apache / kvrocks

Apache Kvrocks is a distributed key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol.
https://kvrocks.apache.org/
Apache License 2.0
3.47k stars 450 forks source link

Add key expiration support to KQIR #2418

Open PragmaTwice opened 2 months ago

PragmaTwice commented 2 months ago

Search before asking

Motivation

Currently, KQIR cannot handle expired keys or remove them from the index after they expire.

We need to add this support.

Solution

No response

Are you willing to submit a PR?

jonathanc-n commented 4 weeks ago

Can I be assigned this?

jonathanc-n commented 6 days ago

@PragmaTwice What would be most ideal for handling expiring keys, lazy expiration, active expiration, etc.?

jonathanc-n commented 6 days ago

I think I will go with a lazy expiration strategy. Probably a combination of that, and a background thread that will clear keys. Btw, do you know how to access ttl keys?