用python 3包装的redis数据结构。

redis_structures的Python项目详细描述


用python 3包装的redis数据结构。

Full documentation can be found at http://docr.it/redis_structures

https://travis-ci.org/jaredlunde/redis_structures.svg?branch=master

安装

redis_结构需要运行的redis服务器。有关安装说明,请参见Redis’s quickstart

安装redis_结构:

$ sudo pip install redis_structures

或来源:

$ git clone https://github.com/jaredlunde/redis_structures
$ cd redis_structures
$ sudo python setup.py install

开始

>>> fromredis_structuresimportStrictRedis,RedisHash>>> client=StrictRedis(host='localhost',port=6379,db=0)>>> rh=RedisHash("my_hash",prefix="rs:hash"client=client)>>> rh['hello']="world"# sets the field name 'hello' to value 'world' in>>> # redis under the key rs:hash:my_hash>>> rh['hello']'world'
>>> delrh['hello']>>> rh.get('hello')None

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

推荐PyPI第三方库


热门话题
试图读取字段“java”。lang.反对安卓。util。一对首先   gradle对java的影响。属性作为任务的输入?   java我的return语句不起作用。我做错了什么?   java通用同步代码块[无对象锁定]   macos Java小程序游戏不能在Mac上运行,即使它可以在PC上运行   java Firebase GeoFire设置位置未在服务中工作   java排序字符串对象   java通过JLabel上传背景图像(jpg)后,如何将图像缩放到它所在的面板上?   java无法连接到jsp中的数据库   java如何在整个ant taskdef操作的执行过程中拥有一个singleton类实例   java如何在按键事件中检查JTtextField中的字符串数字验证器   如何最好地输出大型单行XML文件(使用Java/Eclipse)?   内存不足,Java运行时环境无法在Java应用程序中继续运行   java Hibernate连接错误:组织上的NullPointerException。冬眠hql。阿斯特。HqlSqlWalker。createFromJoinElement   linux将参数从shell脚本传递到java类   java对于接受多个参数的setter是否有类似于@JsonCreator的注释?   java在链表中添加节点