用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中ArrayList的超简单问题   Java 8在一段时间后过期   java如何创建具有用户定义维度的矩阵,并使用从上到下、从左到右的递增值填充它?   java从JDBC重启mysql   带有sqlite的java LiveData未更新UI   带有JDialog的java小程序在Mac OSX中未正确隐藏   java ActionListener无法从公共类引用数组?   java Apache Digester:NoSuchMethodException:没有这样的可访问方法   安卓中数据库中的java数据没有以正确的格式检索   java快速排序实现:使用random pivot时几乎排序   安卓 Java:高效的ArrayList过滤?   java如何在单独的文件中制作GUI程序   jasper报告如何从JSP或Java代码在JasperReport中传递参数值?