Skip to content

Commit 5e2117c

Browse files
authored
fix: cache from ENV - add ioredis support (#7332)
1 parent af2c5c4 commit 5e2117c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection/options-reader/ConnectionOptionsEnvReader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class ConnectionOptionsEnvReader {
7575
return true;
7676
if (caching === "false" || caching === "FALSE" || caching === "0")
7777
return false;
78-
if (caching === "redis" || caching === "database")
78+
if (caching === "redis" || caching === "ioredis" || caching === "database")
7979
return {
8080
type: caching,
8181
options: PlatformTools.getEnvVariable("TYPEORM_CACHE_OPTIONS") ? JSON.parse(PlatformTools.getEnvVariable("TYPEORM_CACHE_OPTIONS")) : undefined,

0 commit comments

Comments
 (0)