FIX: Fix memcached-tool script file #804
Open
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+)\]/)
μ΄μ κ°μ΄ μμ νμμ΅λλ€.