CAS atomic updates versus ketama consistent hashing for zero-downtime cache migration
Goal: Migrate a small web application's cache layer to memcached while keeping all user-facing requests available 100% of the time. The migration must replace existing cache keys with updated values without requiring a full cache flush that would cause a brief service outage. Uncertainty: Memcached's binary protocol CAS atomically compares and swaps a value