编辑数据库实现

datastore.redis的Python项目详细描述


#数据存储redis

##redis的数据存储实现

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

###安装

来自pypi(使用pip):

sudo pip install datastore.redis

来自pypi(使用setuptools):

sudo easy_install datastore.redis

来源:

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

###许可证

datastore.redis在mit许可下。

###联系人

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

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

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

###你好,世界

>>> import redis
>>> import datastore.redis
>>>
>>> r = redis.Redis()
>>> ds = datastore.redis.RedisDatastore(r)
>>>
>>> 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中get和set的用途。应该在哪里使用?   java按钮和标签出现在菜单的JPanel上   使用crudepository和Thymeleaf的java Spring MVC(文本字段和按钮)   java如何保存分离的实体并替换一对多关系的内容?   java如何使用JLabel在一个程序中添加几个相同的图像?   java IBM沃森音调分析器   java在espression时打印检查是否为空数组   java在ArrayList中对对象进行排序,而不使用集合。分类   java将2D数组传递给构造函数   java“GlassFish服务器,部署,null,false”错误   Java:使用lambda向文件添加行号的优雅方式   java在apache camel配置中动态添加<setBody>值   小于6位的java解析纳秒   java为什么我会在这里收到类型安全警告?(仿制药)   工作流中发生的java Collect jbpm错误   如何恢复我的文件关联,以便。jar文件是用java打开的,而不是用unarchiver(在Mac上)?   java维基百科标记器Lucene   音频如何在java游戏中播放声音文件