python links and operates on memcache methods
- 2020-05-26 09:32:45
- OfStack
1. Open the memcached service
memcached -m 10 -p 12000
2. Use python-memcached module for simple linking and data access
import memcache
mc = memcache.Client(['127.0.0.1:12000'], debug=0)
mc.set("foo", "bar")
mc.get("foo")
mc.disconnect_all()
3. For other methods, please refer to:
help(mc)