Memcached Idempotent Write Operation for Safe Retries
The goal is to guarantee that a client’s retry of a memcached SET (or ADD/REPLACE) does not result in duplicate writes when the initial request was processed but the response was lost. Memcached treats each write as an independent operation; the Compare‑And‑Swap (CAS) token can prevent overwriting a newer value but does not stop a retry from issuing another