Skip to content

Commit

Permalink
fix: add config redis
Browse files Browse the repository at this point in the history
  • Loading branch information
William Koller committed Apr 27, 2022
1 parent 337712e commit 507f885
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/cache/cache.settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import * as redisStore from 'cache-manager-redis-store';
export const imports = [
BaseCacheModule.register({
store: redisStore,
url: process.env.REDIS_URL,
isGlobal: true,
socket: {
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT,
},
}),
];

Expand Down

0 comments on commit 507f885

Please sign in to comment.