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

[feat] 에러 메시지 상세화 및 Redis 만료 시간 24시간 설정 추가 #34

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

khee2
Copy link
Member

@khee2 khee2 commented Jun 13, 2024

PULL REQUEST

🔑 주요 변경사항

  • MessageRoomControllerloadMessage 메서드를 업데이트하여 응답 본문에 e.getMessage()를 추가(상세한 에러 메시지를 포함)
  • 'MessageService'의 saveMessageloadMessage 메서드를 업데이트하여 Redis 만료시간을 24시간으로 설정
  • 캐시된 메시지가 24시간 후에 자동으로 삭제 -> 더 오랫동안 캐시에 남아있도록 함
    redisTemplateMessage.expire(messageDto.getRoomId(), 24, TimeUnit.HOURS);

🏞 스크린샷

  • 응답 본문에 에러 메시지 포함
image

@Yeon-chae Yeon-chae merged commit 3f445b2 into main Jun 13, 2024
1 check passed
khee2 pushed a commit that referenced this pull request Nov 19, 2024
[feat] 에러 메시지 상세화 및 Redis 만료 시간 24시간 설정 추가
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants