Skip to content

Commit da00a47

Browse files
authored
fix: remove LRU fallback to prevent app memory growth (#1420)
1 parent 47e13e4 commit da00a47

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cache-handler.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { CacheHandler } from '@neshca/cache-handler'
2-
import createLruHandler from '@neshca/cache-handler/local-lru'
32
import createRedisHandler from '@neshca/cache-handler/redis-strings'
43
import { createClient } from 'redis'
54

@@ -46,10 +45,8 @@ CacheHandler.onCreation(async () => {
4645
}
4746
}
4847

49-
const localHandler = createLruHandler()
50-
5148
return {
52-
handlers: [redisHandler, localHandler]
49+
handlers: [redisHandler].filter(Boolean)
5350
}
5451
})
5552

0 commit comments

Comments
 (0)