FEATURE: Support long type expiration time in v2 APIs#1101
Open
f1v3-dev wants to merge 1 commit into
Open
Conversation
Collaborator
Author
속성 타입 구조 정리 (as-is → to-be)
AS-IS (기존)v1은 한 클래스 계열(
TO-BE (변경 후)v1은 그대로 두고, v2는 역할별로 분리 + [v1 — 변경 X]
[v2 — 신규, long]
역할 분리 요약
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Related Issue
⌨️ What I did
v2 API의 만료 시간 (expiration time) 파라미터 타입을
int에서long으로 변경합니다.이를 통해
int범위를 넘는 Unix timestamp 기반 만료 시각(e.g. 2038년 이후 절대 시각)을 사용할 수 있습니다.long exp를 받도록 변경long만료 시간을 담는AttributesCreate도입OperationFactory,ops/*Operation -> getExpiration method, `ASCII / Binary 프로토콜 구현체까지 타입 변경long값을 그대로 사용int범위를 넘는 값은 예외 처리기존 API(
MemcachedClient,ArcusClient)는 변경되지 않으며int만료 파라미터가long으로 자동 형 변환(auto-widening)이 되어 기존 사용자 코드에는 영향이 없습니다.