Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactoring] Change redis db id in use #466

Open
ChoHadam opened this issue Jan 18, 2023 · 1 comment · Fixed by #467
Open

[Refactoring] Change redis db id in use #466

ChoHadam opened this issue Jan 18, 2023 · 1 comment · Fixed by #467

Comments

@ChoHadam
Copy link
Member

리팩토링 배경

server profile 별로 다른 redis db id를 사용 중인데,
default id로 지정된 id 0을 사용하지 않도록 db id를 일괄 수정하고자 합니다.

redis 연결할 때 db id를 따로 지정하지 않으면 자동으로 0id에 연결되는데,
이는 0id에 저장된 데이터가 의도치 않게 변경될 수 있는 상황을 야기할 수 있습니다.

리팩토링 방법

  • Modify some code to not use redis db id 0.
  • Change the values of the environment variable REDIS_DB_ID injected when running the server.

리팩토링 개선된 점

관련 링크 / 참조

@ChoHadam ChoHadam self-assigned this Jan 18, 2023
@ChoHadam ChoHadam linked a pull request Jan 19, 2023 that will close this issue
@heesung6701
Copy link
Member

Good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants