Property SkipHashValidationOnCacheCheck
Skip hash validation in DB before cache access.
true - for monolithic apps (faster, trust cache)
false - for distributed systems (safer, check freshness)
Default false (safe)
public bool SkipHashValidationOnCacheCheck { get; set; }
Remarks
The zero-DB shortcut applies OUTSIDE transactions only: inside an active transaction
(explicit or ambient) a load always consults the database hash, so the canonical
ExecuteAtomicAsync + LockForUpdateAsync + re-read pattern stays correct even with this
flag on (bug report п.1, 2026-09-02). The flag remains a single-writer trade-off: outside
transactions, changes committed by ANOTHER process stay invisible until the TTL expires.