-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from boostcampwm-2024/be-feat#122
[BE] 작은 리팩토링, Redis 캐싱 도입
- Loading branch information
Showing
24 changed files
with
300 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { registerAs } from '@nestjs/config'; | ||
import { redisStore } from 'cache-manager-redis-yet'; | ||
|
||
export default registerAs('redisConfig', async () => { | ||
const store = await redisStore({ | ||
socket: { | ||
host: process.env.REDIS_HOST || 'localhost', | ||
port: Number(process.env.REDIS_PORT) || 6379, | ||
}, | ||
ttl: 60 * 1000, | ||
}); | ||
|
||
return { | ||
store: store, | ||
}; | ||
}); |
32 changes: 22 additions & 10 deletions
32
.../log/analytic/analytic.controller.spec.ts → ...og/analytics/analytics.controller.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.