- Write-Through: App writes to Cache and DB synchronously (always fresh, slightly slower writes).
- Write-Behind (Write-Back): App writes to Redis first and flushes to DB asynchronously in batches (ultra-fast writes, risk of data loss if Redis crashes before flush).
ADVERTISEMENT