Skip to content

Instantly share code, notes, and snippets.

@notmyname
Created March 15, 2012 18:14
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 notmyname/2045772 to your computer and use it in GitHub Desktop.
Save notmyname/2045772 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
from swift.common.memcached import MemcacheRing
memcache_servers = '127.0.0.1:11211'
memcache = MemcacheRing([s.strip() for s in memcache_servers.split(',') if s.strip()])
cache_key = 'AUTH/token/%s' % sys.argv[1]
memcache.delete(cache_key)
@noodley
Copy link

noodley commented Mar 16, 2012

#!/usr/bin/env python

import sys

from swift.common.memcached import MemcacheRing

memcache_servers = '127.0.0.1:11211'

memcache = MemcacheRing([s.strip() for s in memcache_servers.split(',') if s.strip()])

cache_key = 'AUTH_/auth/%s' % sys.argv[1]
memcache.delete(cache_key)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment