summaryrefslogtreecommitdiff
path: root/tests/server_commands.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | add a debug_object command - so we can get a key's size (among other things)Shaneal Manek2011-10-131-0/+9
| |
* | added the ECHO command for completenessandy2011-10-101-0/+3
| |
* | TTL is StrictRedis returns -1 rather than None for keys with no expiration. ↵andy2011-10-101-0/+18
|/ | | | Redis remains unchanged.
* Renamed the base client class to StrictRedis, replacing ZADD and LREM in ↵andy2011-07-261-17/+18
| | | | favor of their official argument order. The Redis class is now a subclass of StrictRedis, implementing the legacy redis-py implementations of ZADD and LREM. Docs have been updated to suggesting the use of StrictRedis.
* remove obsolete server_commands test_(un)watchRandall Leeds2011-07-111-30/+0
|
* Merge remote-tracking branch 'andymccurdy/watch' into watch_fixesRandall Leeds2011-07-111-2/+4
|\ | | | | | | | | | | Conflicts: redis/client.py tests/server_commands.py
| * Merge branch 'master' into watchandy2011-07-111-2/+4
| |\ | | | | | | | | | | | | Conflicts: CHANGES
| | * Allow a custom callable to be passed to commands whose responses are parsed ↵Andy McCurdy2011-07-111-2/+4
| | | | | | | | | | | | with zset_score_pairs indicating how to cast the score value. Defaults to a float. Fix for #155
| * | WATCH and UNWATCH have been broken since 2.4 because of connection pooling. ↵Andy McCurdy2011-07-111-21/+0
| |/ | | | | | | This fix moves WATCH and UNWATCH to the Pipeline class, where they belong and tests to prove they work.
* | test that pipeline() frees a watching clientRandall Leeds2011-07-071-0/+9
|/
* fix for PythonParser when reading empty stringsAndy McCurdy2011-06-101-0/+5
|
* pipelines need the response_callback love, too. grammar fixes in docsAndy McCurdy2011-06-011-1/+14
|
* support ZADD variable length args. deprecate the version passing score and ↵Andy McCurdy2011-05-311-2/+2
| | | | value (in the wrong order).
* test to prove allocation_stats from 2.2 INFO doesn't cause parse_info to ↵Andy McCurdy2011-05-251-0/+34
| | | | bomb anymore
* new pubsub testsAndy McCurdy2011-05-231-56/+0
|
* all tests passing with new connection poolAndy McCurdy2011-05-161-2/+1
|
* connection class completely refactored. encoding and command packing moved ↵Andy McCurdy2011-05-121-53/+53
| | | | from client to connection. introduced concept of protocol parsers and implemented both a PythonParse and a hiredis parser. the parser class can be overridden in the __init__ of the connection if desired.
* __getitem__ now raises a KeyError when a key doesn't existAndy McCurdy2011-04-261-3/+4
|
* add PubSubError to better report disallowed command when using pub/subDan Colish2011-03-141-0/+1
|
* Raise DataError on empty hmset mappings, remove InvalidDataDan Colish2011-03-141-1/+1
|
* Add support for multiple keys in a single WATCH callRich Schumacher2011-03-041-2/+4
|
* stylistic modes + tests for zrevrangebyscoreAndy McCurdy2011-02-091-0/+22
|
* fixes #76 where ZREVRANK was using the wrong response callbackAndy McCurdy2010-12-211-0/+1
|
* Client now compatible with 2.2.0 commands. (SLAVEOF, CONFIG GET, CONFIG SET, ↵Andy McCurdy2010-12-201-1/+50
| | | | GETBIT, SETBIT, BRPOPLPUSH, STRLEN, PERSIST, SETRANGE)
* Adds the ability to get multiple external keys in a sort.Jacob Kaplan-Moss2010-10-201-0/+8
|
* tests for linsert, lpushx, and rpushxAndy McCurdy2010-10-071-0/+42
|
* Add some tests for WATCHCraig Hawco2010-09-031-0/+19
|
* New command: zcountKonstantin Merenkov2010-08-171-0/+11
|
* Small change to pubsub, hopefully fixing #49, or at least making it a little ↵Andy McCurdy2010-06-241-14/+21
| | | | more sane
* changed return type of listen() -- it's now a dictionary with the following ↵Andy McCurdy2010-06-221-1/+3
| | | | 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.
* added ZREMRANGEBYRANK commandAndy McCurdy2010-06-151-0/+13
|
* BLPOP / BRPOP return tuple instead of a list, as it makes more senseKonstantin Merenkov2010-06-021-10/+10
|
* blpop / brpop can accept string as keyKonstantin Merenkov2010-06-021-0/+4
|
* Added HSETNX command and testssebleier2010-06-021-2/+10
|
* renamed zinter/zunion to zinterstore/zunionstore to stay consistent with Redis.Andy McCurdy2010-05-231-8/+12
|
* added missing EXPIREAT and SETEX commandsAndy McCurdy2010-05-101-12/+22
| | | | added a few missing tests
* Fixed test_hincrbyKonstantin Merenkov2010-05-091-2/+1
| | | | | | * Catch exception RedisError on attempt to increment value "a3". Redis gives "-ERR Operation against a key holding the wrong kind of value" on such attempts.
* values with scores of 0 were previously failing due to the way the callback ↵Andy McCurdy2010-05-031-2/+5
| | | | converted values. changed to a separate function to get proper handling. fixes #33
* added support for zinter and zunionAndy McCurdy2010-04-281-0/+54
|
* added pubsub testsAndy McCurdy2010-04-271-1/+50
| | | | fixed a typo in hmset from the previous commit
* added support for APPEND and SUBSTR commandsAndy McCurdy2010-04-191-0/+25
|
* Always return a set object from set-based commands. Thanks Adam Charnock ↵Andy McCurdy2010-04-191-0/+2
| | | | 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/+11
|
* Updated tests to work with redis logic that [] means there's no keyKonstantin Merenkov2010-04-131-11/+11
|
* HMSET supportKonstantin Merenkov2010-04-131-0/+7
|
* Move towards binary-safeness of keys and values.Konstantin Merenkov2010-04-011-94/+129
| | | | | | | | | * 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
* * fix for #21, make only the "db" argument of select() required. If host ↵Andy McCurdy2010-03-261-1/+21
| | | | | | 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-0/+27
| | | | 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