Code AnalysisIntermediate 60s
Cache write without invalidation on update
Reads use this cache but updates bypass it. What happens?
Starter code
def get(uid): return cache.get_or_load(uid, ttl=300) def update(uid, data): db.update(uid, data) # cache untouched
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.