Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
aanton / memcache-list-all-keys.rb
Last active August 29, 2015 14:13 — forked from bkimble/gist:1365005
List all keys stored in memcache
View memcache-list-all-keys.rb
#!/usr/bin/env ruby
# List all keys stored in memcache.
# Credit to Graham King at for the original article on how to get the data from memcache in the first place.
# Forked from
require 'net/telnet'
headings = %w(id expires bytes cache_key)
rows = []