Releases: fortedigital/nextjs-cache-handler
Releases · fortedigital/nextjs-cache-handler
2.1.2
What's Changed
- Add buildDir in options prop by @Fredrhar in #113
- Bump the all-updates group across 2 directories with 9 updates by @dependabot[bot] in #115
New Contributors
- @Fredrhar made their first contribution in #113
- @dependabot[bot] made their first contribution in #115
Full Changelog: 2.1.1...2.1.2
2.1.1
- Updated minor/patch versions of dependencies - no code changes.
Full Changelog: 2.1.0...2.1.1
2.1.0
What's Changed
- Support Redis Cluster connection by @AyronK in #47
- Fixes fetch cache writing to file system allowing instrumentation to prepopulate it. by @AyronK in #65
- Fixed PPR handling and loading
prefetch.rscon instrumentation by @AyronK in #72 - Fix typo by @razzeee in #84
- 2.1.0 by @AyronK in #64
- Regular update of dependencies' versions
New Contributors
Full Changelog: 2.0.3...2.1.0
2.1.0-canary.14
Full Changelog: 2.1.0-canary.13...2.1.0-canary.14
2.1.0-canary.13
Version bump
2.1.0-canary.12
Full Changelog: 2.1.0-canary.11...2.1.0-canary.12
2.1.0-canary.11
What's Changed
- Support Redis Cluster connection by @AyronK in #47
- Fixes fetch cache writing to file system allowing instrumentation to prepopulate it. by @AyronK in #65
Full Changelog: 2.0.3...2.1.0-canary.11
2.1.0-canary9
Full Changelog: 2.1.0-canary1...2.1.0-canary9
2.1.0-canary10
import { createCluster } from "@redis/client";
import createRedisHandler from "@fortedigital/nextjs-cache-handler/redis-strings";
import { withAdapter } from "@fortedigital/nextjs-cache-handler/cluster/adapter";
const { hostname: redisHostName } = new URL(process.env.REDIS_URL);
redis = withAdapter(
createCluster({
rootNodes: [{ url: process.env.REDIS_URL }],
// optional if you use TLS and need to resolve shards' ip to proper hostname
nodeAddressMap(address) {
const [_, port] = address.split(":");
return {
host: redisHostName,
port: Number(port),
};
},
})
);
// after using withAdapter you can use redis cluster instance as parameter for createRedisHandler
const redisCacheHandler = createRedisHandler({
client: redis,
keyPrefix: CACHE_PREFIX,
});Full Changelog: 2.1.0-canary9...2.1.0-canary10
2.1.0-canary8
Full Changelog: 2.1.0-canary7...2.1.0-canary8