diff --git a/ts/src/services/bento/index.ts b/ts/src/services/bento/index.ts index 103f29b..36a7872 100644 --- a/ts/src/services/bento/index.ts +++ b/ts/src/services/bento/index.ts @@ -3,6 +3,7 @@ import { c } from '#/di' import { BentoCache, bentostore } from 'bentocache' import { memoryDriver } from 'bentocache/drivers/memory' import { redisDriver } from 'bentocache/drivers/redis' +import IORedis from 'ioredis' c.bind({ provide: BentoCache, @@ -12,7 +13,7 @@ c.bind({ defaultStore.useL1Layer(memoryDriver({ maxSize: '32mb' })) if(config.REDIS_URL) { defaultStore.useL2Layer(redisDriver({ - connection: config.REDIS_URL, + connection: new IORedis(config.REDIS_URL), prefix: 'wynn-bento', })) }