Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created February 10, 2014 07:18
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 yuuichi-fujioka/8911691 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/8911691 to your computer and use it in GitHub Desktop.
Example for using memcached
import memcache
c = memcache.Client(['127.0.0.1:11211'])
print c.get('name')
# "Taro" will be printed
import memcache
c = memcache.Client(['127.0.0.1:11211'])
c.set('name', 'Taro')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment