This file contains 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
MEMCACHED_HOST=localhost | |
MEMCACHED_PORT=11211 | |
printf "stats items\n" | nc $MEMCACHED_HOST $MEMCACHED_PORT | grep ":number" | awk -F":" '{print $2}' | xargs -I % printf "stats cachedump % 10000\r\n" | nc $MEMCACHED_HOST $MEMCACHED_PORT |
[참고] http://infoheap.com/memcache-dump-all-keys-values-on-command-line
'DevLogs' 카테고리의 다른 글
함수형 페러다임의 주요 키워드 (0) | 2017.09.06 |
---|---|
iSTYLE24 회원 메일 버그?! (0) | 2017.08.26 |
텔레그램(Telegram) CLI를 사용하여, 자동으로 메시지 보내기 (0) | 2017.08.21 |
Change Node.js Express View Engine from jade to pug (0) | 2017.08.19 |
Closure Code Sample In Javascript (0) | 2017.08.19 |