Skip to content
From 0.5.0 the packages continue as @cqrs-ddd, documented at aristoteliss.github.io/ddd-cqrs; NestJS applications add @cqrs-ddd/nestjs. This site documents the 0.4.x line.

isCacheMutationBarrier

isCacheMutationBarrier(value): value is CacheMutationBarrier

Defined in: packages/ddd-core/persistence/helpers/cache-barrier.helper.ts:107

Type guard verifying whether an arbitrary value is a CacheMutationBarrier.

unknown

Candidate value retrieved from cache.

value is CacheMutationBarrier

true if value is a CacheMutationBarrier, false otherwise.

if (isCacheMutationBarrier(cached)) {
// Barrier encountered; treat as a miss
}