We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e13e4 commit da00a47Copy full SHA for da00a47
1 file changed
cache-handler.mjs
@@ -1,5 +1,4 @@
1
import { CacheHandler } from '@neshca/cache-handler'
2
-import createLruHandler from '@neshca/cache-handler/local-lru'
3
import createRedisHandler from '@neshca/cache-handler/redis-strings'
4
import { createClient } from 'redis'
5
@@ -46,10 +45,8 @@ CacheHandler.onCreation(async () => {
46
45
}
47
48
49
- const localHandler = createLruHandler()
50
-
51
return {
52
- handlers: [redisHandler, localHandler]
+ handlers: [redisHandler].filter(Boolean)
53
54
})
55
0 commit comments