Skip to content

Instantly share code, notes, and snippets.

@z5ottu
Forked from abullrd/ListMemcached.md
Created May 20, 2024 14:03
Show Gist options
  • Save z5ottu/8ea6ca9550fe4b2fd4e838fe0291bb46 to your computer and use it in GitHub Desktop.
Save z5ottu/8ea6ca9550fe4b2fd4e838fe0291bb46 to your computer and use it in GitHub Desktop.
List Memcached Keys

From http://www.darkcoding.net/software/memcached-list-all-keys/

Telnet into memcached

telnet 127.0.0.1 11211

List items

stats items
STAT items:3:number 1
STAT items:3:age 498
STAT items:22:number 1
STAT items:22:age 498
END

Request cachedump

stats cachedump 3 100
ITEM views.decorators.cache.cache_header..cc7d9 [6 b; 1256056128 s]
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment