File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
infrastructure/applications/pycon_frontend Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11import { CacheHandler } from "@neshca/cache-handler" ;
22import createLruHandler from "@neshca/cache-handler/local-lru" ;
3- import createRedisHandler from "@neshca/cache-handler/redis-stack " ;
3+ import createRedisHandler from "@neshca/cache-handler/redis-strings " ;
44import { createClient } from "redis" ;
55
66CacheHandler . onCreation ( async ( ) => {
@@ -57,8 +57,11 @@ CacheHandler.onCreation(async () => {
5757 // Create the `redis-stack` Handler if the client is available and connected.
5858 handler = await createRedisHandler ( {
5959 client,
60- keyPrefix : "nextjs:" ,
60+ keyPrefix : ` ${ process . env . GIT_HASH } :` ,
6161 timeoutMs : 1000 ,
62+ keyExpirationStrategy : "EXAT" ,
63+ sharedTagsKey : "__sharedTags__" ,
64+ revalidateTagQuerySize : 100 ,
6265 } ) ;
6366 } else {
6467 // Fallback to LRU handler if Redis client is not available.
Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ resource "aws_ecs_task_definition" "pycon_frontend" {
4242 },
4343 {
4444 name = " REDIS_URL" ,
45- value = " redis://${ var . server_ip } /2"
45+ value = " redis://${ var . server_ip } /3"
46+ },
47+ {
48+ name = " NEXT_PRIVATE_DEBUG_CACHE" ,
49+ value = " true"
4650 }
4751 ]
4852
You can’t perform that action at this time.
0 commit comments