Skip to content

Commit 6d81b3a

Browse files
authored
Update README.md
1 parent 4630b7f commit 6d81b3a

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

README.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,10 @@ pnpm install @trieb.work/nextjs-turbo-redis-cache
2424
extend `next.config.js` with:
2525
```
2626
const nextConfig = {
27-
cacheHandler:
28-
process.env.NODE_ENV === "production" || process.env.DEV_REDIS_CACHE
29-
? new CachedHandler({
30-
// Default Options:
31-
// maxMemoryCacheSize, // deprecated
32-
// database = process.env.VERCEL_ENV === 'production' ? 0 : 1,
33-
// keyPrefix = process.env.VERCEL_URL || 'UNDEFINED_URL_',
34-
// sharedTagsKey = '__sharedTags__',
35-
// timeoutMs = 5000,
36-
// revalidateTagQuerySize = 250,
37-
// avgResyncIntervalMs = 60 * 60 * 1000,
38-
// redisGetDeduplication = true,
39-
// inMemoryCachingTime = 10_000,
40-
// defaultStaleAge = 60 * 60 * 24 * 14,
41-
// estimateExpireAge = (staleAge) =>
42-
// process.env.VERCEL_ENV === 'preview' ? staleAge * 1.2 : staleAge * 2,
43-
})
44-
: undefined,
27+
...
28+
cacheHandler: require.resolve("@trieb.work/nextjs-turbo-redis-cache")
29+
...
30+
}
4531
```
4632

4733
## Consistency

0 commit comments

Comments
 (0)