Python的Redis库 ooredis

openkk 13年前
     <div id="p_fullcontent" class="detail">     <p>ooredis是一个Redis的Python库,基于redis-py,它主要有以下三个目标:</p>     <p>    - 以Key对象为单位操作Redis的数据结构<br />     - 提供一组Pythonic的API<br />     - 提供方便的类型转换机制 </p>     <p>需求</p>     <p>====</p>     <p>Python2.7<br /> Redis2.2<br /> redis-py2.4.9</p>     <p>安装</p>     <p></p>     <pre class="brush:python; toolbar: true; auto-links: false;">    $ cd /tmp/      $ git clone git://github.com/huangz1990/ooredis.git      Cloning into ooredis...      ...      Resolving deltas: 100% (34/34), done.      $ cd ooredis/      $ sudo mv ooredis/ /usr/lib/python2.7/site-packages/      $ python2      Python 2.7.2 (default, Jun 29 2011, 11:17:09)      [GCC 4.6.1] on linux2      Type "help", "copyright", "credits" or "license" for more information.      >>> from ooredis import *</pre>     <p></p>     <p> </p>     <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1322745173359" target="_blank">http://www.open-open.com/lib/view/home/1322745173359</a></p>    </div>