memached数据存储实现

datastore.memcached的Python项目详细描述


#数据存储memcached

##memcached的数据存储实现

请参阅[数据存储](https://github.com/datastore/datastore)。

###安装

来自pypi(使用pip):

sudo pip install datastore.memcached

来自pypi(使用setuptools):

sudo easy_install datastore.memcached

来源:

git clone https://github.com/datastore/datastore.memcached/ cd datastore.memcached sudo python setup.py install

###许可证

datastore.memcached受麻省理工学院许可。

###联系人

datastore.memcached由[juan batiz benet](https://github.com/jbenet)编写。 它是从[数据存储](https://github.com/datastore/datastore)中提取的 2013年2月。

项目主页: [https://github.com/datastore/datastore.memcached](https://github.com/datastore/datastore.memcached

请随时与我联系。但请先在github中提交问题。干杯!

###你好,世界

>>> import pylibmc
>>> import datastore.memcached
>>>
>>> mc = pylibmc.Client(['127.0.0.1'])
>>> ds = datastore.memcached.MemcachedDatastore(mc)
>>>
>>> hello = datastore.Key('hello')
>>> ds.put(hello, 'world')
>>> ds.contains(hello)
True
>>> ds.get(hello)
'world'
>>> ds.delete(hello)
>>> ds.get(hello)
None

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在java中创建泛型方法   私有方法的动态绑定:java vs C++   java移除屏幕亮度在A片段中增加到在B片段中移动   泛型Java中任何对象的编译时类型与运行时类型之间的区别是什么?   爪哇圆填满身体   java我能把我的eclipse项目变成linux应用程序吗?   尝试使用Selenium运行简单脚本时出现java错误   Java streams从map of maps获取列表   java在另一个包中委托接口的方法时,如何使委托类成为非公共类?   java如何让除第三方之外的所有用户放心   java如何在类路径中链接DLL文件   Java字符串数组的操作   无法在Vista Business上执行Java app“找不到主类…程序将退出”   urlencode在java中解码URL的最佳方法是什么?   java在集合中迭代以添加项,但抛出ConcurrentModificationException   regex Java正则表达式只匹配签名中的方法名称   Java需要构造函数和super,但我已经定义了