Message de-duplication / idempotency guard — a bounded LRU of message keys already handled, so a bot doesn't reply twice when WhatsApp re-delivers a message (reconnect, history sync, placeholder resend, retries).
Readonly
Number of keys currently tracked.
Record a key without returning its previous state.
Drop everything.
Forget a single key.
Check membership without recording.
True if already recorded (and still fresh); records it when new.
Message de-duplication / idempotency guard — a bounded LRU of message keys already handled, so a bot doesn't reply twice when WhatsApp re-delivers a message (reconnect, history sync, placeholder resend, retries).