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.55k stars 466 forks source link

can it monitor expired key? #457

Closed ZonghaoWang closed 2 years ago

ZonghaoWang commented 2 years ago

Please keep in mind that this issue tracker should be used for reporting bugs or proposing improvements to the kvrocks server.

Generally, questions about using kvrocks should be directed to the community.

It is also possible that your question was already asked here, so please do a quick issues search before submitting.

That said, please feel free to replace all this with your question :)

git-hulk commented 2 years ago

Do you mean can we monitor the number of expired key numbers?

ZonghaoWang commented 2 years ago

pubsub redis event, in redis.conf, notify-keyspace-event

git-hulk commented 2 years ago

Got what you mean, it’s not easy for Kvrocks since expired behavior was delay to RocksDB compaction. Welcome to feedback if you have any thoughts l.

ZonghaoWang commented 2 years ago

thanks