Skip to content

Instantly share code, notes, and snippets.

@xarg
Created October 4, 2011 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xarg/1261914 to your computer and use it in GitHub Desktop.
Save xarg/1261914 to your computer and use it in GitHub Desktop.
Memcache monitoring script
#!/usr/bin/python
import os
import memcache
import time
from pprint import pprint
client = memcache.Client(["127.0.0.1:11211"])
while True:
os.system('clear')
pprint(client.get_stats())
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment