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

[#21] TestContainer 적용 #22

Merged
merged 22 commits into from
Sep 29, 2024
Merged

[#21] TestContainer 적용 #22

merged 22 commits into from
Sep 29, 2024

Conversation

dvlprkoji
Copy link
Collaborator

[#21] TestContainer 적용

public boolean findMember(String key) {
return redissonClient.getBucket(key).isExists();
public boolean findMember(String key, Long value) {
return redissonClient.getSet(key).contains(value);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return redissonClient.getSet(key).contains(value);
return redissonClient.exists(key + '{' + value + '}');

- Redis 자료구조 변경 (Sets > Strings)
- key 값 변경 ("{eventId}:{eventDate}" > "{eventId}:{eventDate}:{memberId}")
- aladiin.couponapi.model.dto.EventJoinRequest > aladiin.core.request.EventJoinRequest;
- com.aladiin.couponconsumer > aladiin.couponconsumer
// 3. 쿠폰 발급
// ㄴ 메모리 쿠폰 재고 감소
// ㄴ RDB 쿠폰 발급 처리
couponService.issue(eventJoinRequest.getMemberId());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvlprkoji dvlprkoji merged commit 3fd67fa into develop Sep 29, 2024
1 check passed
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