FIX: Fix memcached-tool script file#804
Open
cheesecrust wants to merge 1 commit intonaver:developfrom
Open
Conversation
ing-eoking
reviewed
Nov 12, 2024
bcc0111 to
ba37532
Compare
ing-eoking
approved these changes
Nov 12, 2024
ba37532 to
6f5f9ad
Compare
Contributor
Author
위와 같은 포멧으로 출력됩니다. Dumping memcache contents
Number of buckets: 1
Number of items : 1
Dumping bucket 0 - 1 total items
add key 0 529 5
cache따라서 이때 529가 exptime 입니다. |
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
stats cachedump수행시 반환 값이 기존 코드의 정규식에서 추출하지 못하게 됩니다.⌨️ What I did
stats cachedump <bucket> <items>를 실행하면ITEM foo [6 b; 1176415152 s]값을 반환합니다.(이때의 b 앞의 숫자는 키 포함 항목 크기(바이트)를 의미하고, s 앞의 숫자는 Expiration timestamp(arcus의 exptime 과 같습니다.) 입니다.)그리고 memcached-tool에서는 key 마다 항목의 바이트 크기를 보여주었습니다.
stats cachedump <bucket> <items>를 실행하게 되면ITEM arcus [acctime=22, exptime=0]와 같이 출력됩니다.cachedump가 출력하는 형태가 오픈소스 memcahed와는 달라짐에 따라 arcus-memcached 서버에서 반환하는 exptime을 추출하여 보여주기 위해 정규식을(/^ITEM (\S+) \[(.*?exptime=(\d+)\]/)이와 같이 수정하였습니다.