@lucid-softworks/cache-invalidation
v0.1.0
Published
Portable key, tag, and global cache invalidation messages.
Maintainers
Readme
@lucid-softworks/cache-invalidation
Validated key, tag, and global invalidation messages for transporting cache changes through Redis Pub/Sub, a queue, or another application bus.
const publisher = new CacheInvalidationPublisher(transport);
await publisher.publish({ type: "tag", tag: "products" });
const event = decodeCacheInvalidation(message);
await applyCacheInvalidation(target, event);