Python utility to get / set (read/write) values from memcached
(requires package python-memcached)
Install
pip install memcached-utils
foo
from memcached
Print the value of key memcached-utils.py -k "foo"
foo
for memcached client running on 127.0.0.1:11211
(default)
Get the value of key memcached-utils.py -k "foo" -v bar -f str
foo
to bar
(integer)
Set the value of key memcached-utils.py -k "foo" -v bar -f int
foo
to bar
(string)
Set the value of key memcached-utils.py -k "foo" -v bar -f str