[Improvement] DeadTokenCleanupWorker Redis 캐시 무효화 연동 #160
Labels
No Label
Priority
High
Priority
Low
Priority
Medium
Priority
Non
Priority
Urgent
Status
Available
Status
Done
Status
In Progress
Type
Bug
Type
Chore
Type
Design
Type
Documentation
Type
Feature
Type
Improvement
Type
Refactor
Type
Research
Type
Task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SPMS/SPMS_API#160
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
설명
DeadTokenCleanupWorker가 비활성 디바이스를 물리 삭제할 때, 해당 디바이스의 Redis 토큰 캐시도 함께 무효화하도록 연동한다.
현재 Worker는 DB에서 Device를 직접 삭제하지만 ITokenCacheService를 주입받지 않아, 삭제된 디바이스의 캐시가 TTL(1시간) 동안 남아있어 PushWorker가 이미 삭제된 디바이스로 발송을 시도할 수 있다.
작업 내용
참조
SPMS.Infrastructure/Workers/DeadTokenCleanupWorker.csSPMS.Application/Interfaces/ITokenCacheService.csSPMS.Infrastructure/Caching/TokenCacheService.cs