summaryrefslogtreecommitdiff
path: root/redis/client.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Adds the ability to get multiple external keys in a sort.Jacob Kaplan-Moss2010-10-201-2/+11
|
* adjusted comments to reflect proper error returnsAndy McCurdy2010-10-071-5/+7
|
* Add support for LPUSHX, RPUSHX, LINSERTJD Maturen2010-10-071-2/+19
|
* timeout of None to the brpop/blpop is the same as timeout=0Andy McCurdy2010-09-291-0/+4
|
* Use the correct number of parameters for the UNWATCH command.Craig Hawco2010-09-031-2/+2
|
* Add UNWATCH as well.Craig Hawco2010-09-031-1/+10
|
* Add WATCH command to redis-pyCraig Hawco2010-09-031-2/+14
|
* slight optimization to hmset, mset, and msetnx for both clarity and speedAndy McCurdy2010-08-191-3/+6
|
* optimized execute_command thanks to github user SuorAndy McCurdy2010-08-181-7/+4
|
* added a shutdown command. fixes #58. no tests for this because it would be ↵Andy McCurdy2010-08-181-0/+11
| | | | impossible to restart the redis instance being tested against.
* functions that return sets should now work against older Redis server ↵Andy McCurdy2010-08-181-1/+1
| | | | versions that returned None rather than an empty list.
* New command: zcountKonstantin Merenkov2010-08-171-0/+3
|
* Small change to pubsub, hopefully fixing #49, or at least making it a little ↵Andy McCurdy2010-06-241-2/+7
| | | | more sane
* changed return type of listen() -- it's now a dictionary with the following ↵Andy McCurdy2010-06-221-4/+14
| | | | keys: type -- the message type, data -- the actual message, channel -- the channel the message was delivered on. if the message was triggered due to a pattern matched from psubscribe, then a 4th key will be present: pattern, indicating the pattern that was matched.
* add psubscribe and punsubscribe to subscription commandstwidi2010-06-221-1/+1
|
* added context manager support to the Lock object so you can do "with ↵Andy McCurdy2010-06-151-16/+38
| | | | | | | redis.lock('lockname'): ..." allow "sleep" to be specified as an argument to the lock moved the timeout parameter to Lock's __init__ to better mimic threading.lock, and allow it to be used in conjunction with context manager support.
* configurable sleep durationAndy McCurdy2010-06-151-2/+5
|
* added a Lock class that mimics the behavior of threading.Lock.Andy McCurdy2010-06-151-0/+69
| | | | convenience function on the redis client to instantiate a new Lock object.
* added ZREMRANGEBYRANK commandAndy McCurdy2010-06-151-2/+12
|
* BLPOP / BRPOP return tuple instead of a list, as it makes more senseKonstantin Merenkov2010-06-021-0/+1
|
* blpop / brpop can accept string as keyKonstantin Merenkov2010-06-021-2/+8
|
* Added HSETNX command and testssebleier2010-06-021-0/+7
|
* renamed zinter/zunion to zinterstore/zunionstore to stay consistent with Redis.Andy McCurdy2010-05-231-2/+14
|
* added missing EXPIREAT and SETEX commandsAndy McCurdy2010-05-101-3/+20
| | | | added a few missing tests
* values with scores of 0 were previously failing due to the way the callback ↵Andy McCurdy2010-05-031-3/+14
| | | | converted values. changed to a separate function to get proper handling. fixes #33
* added support for zinter and zunionAndy McCurdy2010-04-281-0/+32
|
* added pubsub testsAndy McCurdy2010-04-271-2/+24
| | | | fixed a typo in hmset from the previous commit
* docs and param name consistency cleanupAndy McCurdy2010-04-271-3/+6
|
* added support for APPEND and SUBSTR commandsAndy McCurdy2010-04-191-0/+15
|
* Always return a set object from set-based commands. Thanks Adam Charnock ↵Andy McCurdy2010-04-191-3/+4
| | | | for the bug report.
* HGETALL returns empty dict instead of None when there's no key in redisKonstantin Merenkov2010-04-171-1/+1
|
* HMGET + testsKonstantin Merenkov2010-04-171-0/+4
|
* HMSET supportKonstantin Merenkov2010-04-131-1/+7
|
* [issue 29] Redis instance doesn't use shared connection pool by defaultKonstantin Merenkov2010-04-121-5/+4
| | | | | | | | | | | | | | | * Redis constructor accepts connection_pool keyword argument, that defaults to None (no shared connection pool). However, you can create ConnectionManager instance yourself and pass it to as many Redis instances as you want, making them use shared connection pool. * Renamed ConnectionManager to ConnectionPool. * Exported ConnectionPool, so now you can import it in your code and create instances. * Removed test_pipeline_with_fresh_connection test, since all redis instances don't use shared pool by default now. * corrected few typos in comments. * repaired the rest of tests.
* [cosmetic] stupid 80 charactersAndy McCurdy2010-04-011-3/+6
|
* Handling that socket.error's args is either (errno, "msg") or "msg"Konstantin Merenkov2010-04-021-2/+6
|
* added support for BGREWRITEAOFAndy McCurdy2010-04-011-0/+7
|
* Pipeines can not optionally be transactions (wrapped in MULTI/EXEC) or not ↵Andy McCurdy2010-03-311-18/+46
| | | | by passing the transaction parameter. This fixes #23.
* Not consuming responses for subscribe commands.Konstantin Merenkov2010-04-011-4/+2
|
* [cosmetic] a bit of formating + fixed a typoKonstantin Merenkov2010-04-011-4/+4
|
* [cosmetic] removed a nearly-dupe comment from _execute_commandKonstantin Merenkov2010-04-011-2/+1
|
* Move towards binary-safeness of keys and values.Konstantin Merenkov2010-04-011-126/+119
| | | | | | | | | * Dropped support of all protocols except multi-bulk the only protocol that yet to be released redis 2.0 is able understand * As a side-effect there is an 'execute_command' function exposed to the library user. As for now it is pretty useless :) * Added (only) two tests
* [cosmetic] whitespaces cleanupKonstantin Merenkov2010-04-011-169/+172
|
* Prevent crash when using pipelines (added self.subscribed to __init__)Konstantin Merenkov2010-03-311-0/+1
|
* Yield tuple (type, channel, message) from listen() instead of dictionaryKonstantin Merenkov2010-03-311-3/+3
|
* added support for subscribe, unsubscribe, publish. tests incoming. pattern is:Andy McCurdy2010-03-301-2/+46
| | | | | | | | | redis.subscribe('my_channel') for msg in redis.listen(): channel, data = msg['channel'], msg['message'] ... listen() is a generator that will generate new messages as they come in. it will continue to block until all channels are unsubscribed.
* * fix for #21, make only the "db" argument of select() required. If host ↵Andy McCurdy2010-03-261-4/+23
| | | | | | and port aren't specified, the host/port options on the existing connection are used. * added HINCRBY support
* HEXISTS and HLEN implementationsAndy McCurdy2010-03-181-12/+26
| | | | added a socket_timeout parameter to allow commands to timeout and raise an error
* fix for #18 -- i had copy/pasted some code from another function and forgot ↵Andy McCurdy2010-03-161-1/+1
| | | | to actually change it! thanks to Sam (SJD) for the bug report
* HKEYS HVALS and HGETALL implementedAndy McCurdy2010-03-161-0/+16
|