-
Notifications
You must be signed in to change notification settings - Fork 55
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
FEATURE: touch command #778
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전반적으로 코드 정리가 필요해 보입니다.
코드 포맷이나 불필요한 코드는 없는지 다시 확인해 주세요.
This comment was marked as resolved.
This comment was marked as resolved.
4a5406b
to
82d1237
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드 정리에 더 신경써 주기 바랍니다.
@cheesecrust
|
mem_cmd_is 에 대한 참고입니다. arcus-memcached/t/lib/MemcachedTest.pm Lines 41 to 134 in b9bb4b2
|
41622c7
to
0e3c76e
Compare
87ce740
to
6bdc30b
Compare
ade70c2
to
0d22499
Compare
|-----------------------------------------|------------------------ | | ||
| "TOUCHED" | 성공 | ||
| "NOT_FOUND" | key miss | ||
| "CLIENT_ERROR bad value" | exptime 값이 유효하지 않은 경우 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@namsic
touch 명령은 memcached의 기존 kv 명령이므로
이 용을 kv 부분으로 옮기는 것이 좋을 것 같습니다.
검토해 주세요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 부분을 ch10 에서 kv 부분인 ch04 로 옮겼습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 의견이 조금 다른데, touch
는 attribute에, gat
는 kv에 두는 것이 좋아 보입니다.
- memcached에서는
<cache item> == <kv item>
이므로touch
를 kv 명령으로 볼 수 있지만, - arcus에서는
touch
명령으로 collection item의 exptime도 설정할 수 있기 때문입니다. - @cheesecrust 만약
touch
문서를 kv에 두려면, collection type의 문서에서도 관련 내용이 언급되어야 맞는 것 같습니다.
add touch command with test file and docs
… key value` to `ENV key=value`, in Dockerfile.
#782 |
Description
A feature to alter the expiration time of a key without fetching the item.
This works for KV relationships and collections.
Syntax
Response
found.