Skip to content

Releases: fortedigital/nextjs-cache-handler

2.1.2

20 Oct 11:10

Choose a tag to compare

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

Full Changelog: 2.1.1...2.1.2

2.1.1

15 Oct 09:55

Choose a tag to compare

  • Updated minor/patch versions of dependencies - no code changes.
    Full Changelog: 2.1.0...2.1.1

2.1.0

01 Oct 07:34
9f290eb

Choose a tag to compare

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.rsc on 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

29 Sep 14:49

Choose a tag to compare

2.1.0-canary.14 Pre-release
Pre-release

2.1.0-canary.13

08 Sep 08:57

Choose a tag to compare

2.1.0-canary.13 Pre-release
Pre-release
Version bump

2.1.0-canary.12

25 Aug 15:11

Choose a tag to compare

2.1.0-canary.12 Pre-release
Pre-release

2.1.0-canary.11

25 Aug 12:38

Choose a tag to compare

2.1.0-canary.11 Pre-release
Pre-release

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

12 Aug 10:30

Choose a tag to compare

2.1.0-canary9 Pre-release
Pre-release

2.1.0-canary10

12 Aug 10:45

Choose a tag to compare

2.1.0-canary10 Pre-release
Pre-release
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

11 Aug 14:56

Choose a tag to compare

2.1.0-canary8 Pre-release
Pre-release