Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/tag-read-mode.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.1.0

### Minor Changes

- [#32](https://github.com/leejpsd/nextjs-cache-handler/pull/32) [`247f38f`](https://github.com/leejpsd/nextjs-cache-handler/commit/247f38f0087a1664ffba2bb41d069f6752875cad) Thanks [@leejpsd](https://github.com/leejpsd)! - New `tagReadMode` option for the `'use cache'` handler (#31). The default, `"scan"`, is unchanged: `refreshTags()` SCANs the namespace's tag markers into a local mirror on every request. Redis SCAN walks the whole keyspace regardless of the MATCH pattern, so that cost grows with the total number of keys in the database, not with the number of tags: about 20 ms per request at 20k keys and 65–170 ms at 100k against a local Redis. `tagReadMode: "on-demand"` turns the scan off; `get()` and `getExpiration()` instead `MGET` the markers for exactly the tags they are given (the entry's own tags plus the route's soft tags), one extra round trip per `get()`, which is how the singular handler and `getExpiration()` already worked. `tagPubSub` works in either mode. Thanks @royvou for the report and the proposal.

## 1.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leejpsd/nextjs-cache-handler",
"version": "1.0.6",
"version": "1.1.0",
"description": "Redis cache handler for self-hosted Next.js 15 and 16. Ships both cacheHandler (ISR) and cacheHandlers ('use cache'), with tag invalidation, deploy-time seeding, compression, Redis Cluster and Sentinel, and OpenTelemetry.",
"keywords": [
"next",
Expand Down