Created
February 10, 2014 07:18
-
-
Save yuuichi-fujioka/8911691 to your computer and use it in GitHub Desktop.
Example for using memcached
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import memcache | |
c = memcache.Client(['127.0.0.1:11211']) | |
print c.get('name') | |
# "Taro" will be printed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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