1. Which pair correctly matches a cache write policy?
Write-behind (write-back) updates the cache first and persists to the database asynchronously. Write-through updates both synchronously. Write-around skips the cache on writes but lets reads fill it later.
put(k,v): cache.set(k,v); queue.enqueue({k,v});