Rules Hub
Code Ruleset
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
Invalidate cache completeness after a failed write
A failed incremental cache update must best-effort clear existing completeness markers so later reads repair the missing update instead of extending stale completeness.
Bad example
| 1 | try { await cache.append(item); } catch (error) { log(error); } |
Explanation (EN)
A failed incremental cache update must best-effort clear existing completeness markers so later reads repair the missing update instead of extending stale completeness.
Objašnjenje (HR)
A failed incremental cache update must best-effort clear existing completeness markers so later reads repair the missing update instead of extending stale completeness.
Good example
| 1 | try { await cache.append(item); } catch (error) { log(error); await cache.invalidateCompleteness().catch(log); } |
Explanation (EN)
Invalidate cache completeness after a failed write
Objašnjenje (HR)
Invalidate cache completeness after a failed write
Notes (EN)
A failed incremental cache update must best-effort clear existing completeness markers so later reads repair the missing update instead of extending stale completeness.
Bilješke (HR)
Primijeniti pri promjenama cachea, fallbacka i obrade skupova podataka.
Exceptions / Tradeoffs (EN)
Invalidation cannot be guaranteed while the cache itself is unavailable.
Iznimke / Tradeoffi (HR)
Invalidation cannot be guaranteed while the cache itself is unavailable.