Skip to content

Commit

Permalink
update to 0.03
Browse files Browse the repository at this point in the history
  • Loading branch information
Bocaibei committed Nov 20, 2014
1 parent 65e86a5 commit ce7b154
Show file tree
Hide file tree
Showing 10 changed files with 1,785 additions and 362 deletions.
170 changes: 160 additions & 10 deletions docs/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Client
"""
.. automethod:: StrictSSDB.get

getset
""""""
.. automethod:: StrictSSDB.getset

set
"""
.. automethod:: StrictSSDB.set
Expand All @@ -34,6 +38,18 @@ Client
"""
The same is `set`_.

setnx
"""""
.. automethod:: StrictSSDB.setnx

expire
""""""
.. automethod:: StrictSSDB.expire

ttl
"""
.. automethod:: StrictSSDB.ttl

setx
""""
.. automethod:: SSDB.setx
Expand All @@ -58,6 +74,26 @@ Client
""""
.. automethod:: StrictSSDB.decr

getbit
""""""
.. automethod:: StrictSSDB.getbit

setbit
""""""
.. automethod:: StrictSSDB.setbit

countbit
""""""""
.. automethod:: StrictSSDB.countbit

substr
""""""
.. automethod:: StrictSSDB.substr

strlen
""""""
.. automethod:: StrictSSDB.strlen

multi_set
"""""""""
.. automethod:: StrictSSDB.multi_set
Expand Down Expand Up @@ -159,6 +195,10 @@ Client
"""""
.. automethod:: StrictSSDB.hsize

hlen
""""
The same is `hsize`_.

multi_hget
""""""""""
.. automethod:: StrictSSDB.multi_hget
Expand Down Expand Up @@ -187,9 +227,9 @@ Client
"""""
.. automethod:: StrictSSDB.hlist

hlen
""""
The same is `hlist`_.
hrlist
""""""
.. automethod:: StrictSSDB.hrlist

hkeys
"""""
Expand Down Expand Up @@ -268,6 +308,14 @@ Client
"""""
.. automethod:: StrictSSDB.zsize

zlen
""""
The same is `zsize`_.

zcard
"""""
The same is `zsize`_.

multi_zget
""""""""""
.. automethod:: StrictSSDB.multi_zget
Expand Down Expand Up @@ -296,13 +344,9 @@ Client
"""""
.. automethod:: StrictSSDB.zlist

zlen
""""
The same is `zlist`_.

zcard
"""""
The same is `zlist`_.
zrlist
""""""
.. automethod:: StrictSSDB.zrlist

zkeys
"""""
Expand Down Expand Up @@ -331,3 +375,109 @@ Client
zrrange
"""""""
.. automethod:: StrictSSDB.zrrange

zcount
""""""
.. automethod:: StrictSSDB.zcount

zsum
""""
.. automethod:: StrictSSDB.zsum

zavg
""""
.. automethod:: StrictSSDB.zavg

zremrangebyrank
"""""""""""""""
.. automethod:: StrictSSDB.zremrangebyrank

zremrangebyscore
""""""""""""""""
.. automethod:: StrictSSDB.zremrangebyscore


Queue
^^^^^

A queue in ssdb.

.. code-block:: python
>>> from ssdb.client import SSDB
>>> ssdb = SSDB()
>>> ssdb.qpush('queue_1', 'a', 'b', 'c', 'd', 'e', 'f', 'g')
>>> ssdb.qpush('queue_2',
... 'test1',
... 'test2',
... 'test3',
... 'test4',
... 'test5',
... 'test6',
... )
qsize
"""""
.. automethod:: StrictSSDB.qsize

qlist
"""""
.. automethod:: StrictSSDB.qlist

qrlist
""""""
.. automethod:: StrictSSDB.qrlist

qclear
""""""
.. automethod:: StrictSSDB.qclear

qfront
""""""
.. automethod:: StrictSSDB.qfront

qback
"""""
.. automethod:: StrictSSDB.qback

qget
""""
.. automethod:: StrictSSDB.qget

qrange
""""""
.. automethod:: StrictSSDB.qrange

qslice
""""""
.. automethod:: StrictSSDB.qslice

qpush_front
"""""""""""
.. automethod:: StrictSSDB.qpush_front

qpush_back
""""""""""
.. automethod:: StrictSSDB.qpush_back

qpush
"""""
.. automethod:: StrictSSDB.qpush

qpop_front
""""""""""
.. automethod:: StrictSSDB.qpop_front

qpop
""""
.. automethod:: StrictSSDB.qpop

qpop_back
"""""""""
.. automethod:: StrictSSDB.qpop_back

queue_exists
""""""""""""
.. automethod:: StrictSSDB.queue_exists


2 changes: 1 addition & 1 deletion ssdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PubSubError, SSDBError, ResponseError, WatchError)


__version__ = '0.0.2'
__version__ = '0.0.3'
VERSION = tuple(map(int, __version__.split('.')))

__all__ = ['SSDB', 'StrictSSDB', 'ConnectionPool', 'BlockingConnectionPool',
Expand Down

0 comments on commit ce7b154

Please sign in to comment.