Open lsxliron opened 6 months ago
I don't know go very well, but I think this bit of the go-client is exposing purge events separately from delete events? https://github.com/nats-io/nats.go/blob/9d4b227179d60d6996c32b4b889d4e325ee06f78/kv.go#L982-L989
@mmmries i just started using the KV so I’m not an expert. The end result is the same, the key is removed from the bucket (history stays when using del and removed when using purge).
However, when the watcher process starts, you will still get historical events for a key that was deleted but not for a key that was purged.
Edit It shouldn’t be hard to add a purge event if needed though
:key_deleted
event is emitted when wither purging or deleting a keyFixes #156