Commit Graph

185 Commits

Author SHA1 Message Date
ef11bcccca Refactor and rename SUBSTR to GETRANGE
SUBSTR is renamed to GETRANGE to have better consistency between command
names (with SETRANGE as its dual). GETRANGE is still aliased as SUBSTR.
2010-12-14 15:16:29 +01:00
9f9e1ceaa0 Add SETRANGE command implementation and tests 2010-12-14 14:20:51 +01:00
6f8a32d5c7 Be less verbose in testing; improve error handling 2010-12-10 16:13:21 +01:00
eae33c1c81 Add generic function to grow an sds value
Move logic concerned with setting a bit in an sds to the SETBIT command
instead of keeping it in sds.c. The function to grow an sds can and will
be reused for a command to set a range within a string value.
2010-12-10 11:58:21 +01:00
076f88d657 Enforce maximum string value length of 512MB 2010-12-09 17:16:10 +01:00
3c1bf4957e Add commands SETBIT/GETBIT 2010-12-09 16:39:33 +01:00
ecf9401415 Fix case and indent 2010-12-06 16:04:42 +01:00
8a88c368ed Check other blocked clients when value could not be pushed 2010-12-06 16:04:10 +01:00
baa14ef913 Fix BRPOPLPUSH behavior for all use cases. 2010-11-29 23:52:07 -03:00
7c25a43adc Handle BRPOPLPUSH inside a transaction. 2010-11-29 23:52:07 -03:00
ba3b474111 Refactor code for BRPOPLPUSH. 2010-11-29 23:52:07 -03:00
b2a7fd0cf7 BRPOPLPUSH. 2010-11-29 23:52:07 -03:00
21dbc6499a merge conflict resolved 2010-10-28 22:59:47 +02:00
73abd0a9d2 Merge remote branch 'remotes/pietern/zrevrangebyscore' 2010-10-28 14:12:25 +02:00
e584d82fec Return error to client on wrong type for HMGET 2010-10-26 12:33:17 +02:00
b19c33d48a Prevent clients from making too large multibulk requests 2010-10-15 19:15:38 +02:00
dc11daf3b5 Change tests to use either the inline or the multibulk protocol 2010-10-15 17:25:20 +02:00
5a4f9f27e7 Add tests for OK on QUIT 2010-10-15 12:54:53 +02:00
7236fdb22f Return error when min and/or max in the sorted set range spec is not a double 2010-10-13 21:59:24 +02:00
91504b6cbe Make ZREMRANGEBYSCORE accept the same range spec as ZRANGEBYSCORE
This allows to use inclusive/exclusive bounds for min and max when
deleting a range of scores from a sorted set.
2010-10-13 21:43:58 +02:00
26f3388d27 Merge branch 'master' into zrevrangebyscore 2010-10-13 20:29:50 +02:00
4610b0332c intset stress testing added, ziplist stress testing relocated in a more appropriate place 2010-09-24 11:15:06 +02:00
ef27ba988b explicit regression test for a ziplist bug added 2010-09-24 10:37:00 +02:00
1a06bf93c4 ziplist implementation fuzzy tests 2010-09-24 10:30:15 +02:00
25bb8a4452 Add ZREVRANGEBYSCORE and refactor Z*RANGEBYSCORE 2010-09-16 14:38:07 +02:00
3c23ee1ba2 Fix another test that sometimes returned the swapped object instead of encoding 2010-09-13 16:59:46 +02:00
efc5d4cc0d Fix test that sometimes returned the swapped object instead of encoding 2010-09-07 11:49:33 +02:00
f7f12a606c resolved conflict merging pietern/bpop-timeout 2010-08-31 11:23:12 +02:00
08f55b786b faster server starting in Redis tests 2010-08-31 11:17:06 +02:00
1eb13e4913 Fix set tests to make sets have a deterministic encoding 2010-08-31 09:37:35 +02:00
fb92ecece7 BLPOP inside MULTI/EXEC block no longer crashes, instead if the list is empty the behavior is like if the timeout is reached. This fixes Issue 285 2010-08-30 16:31:03 +02:00
452ccf7a41 SORT stress testing against bigger aggregate values 2010-08-26 17:29:13 +02:00
94364d53b4 Verify that the blocking pop timeout value is a non-negative integer 2010-08-26 14:05:14 +02:00
acc75bfd4f Merge remote branch 'pietern/intset-split' 2010-08-26 12:04:24 +02:00
01daeecee7 added tests for invalid bulk argument 2010-08-24 11:49:05 +02:00
029e5577ff Make SORT use the hybrid set accessors to allow sorting intsets 2010-08-21 11:20:41 +02:00
2b9a59471f SORT tests with hash table encoded set as input 2010-08-21 11:03:56 +02:00
ced6709cb9 Make SORT tests use both ziplists and linked lists as input 2010-08-21 11:02:22 +02:00
5d4f3a8c85 Move SORT tests around 2010-08-21 10:55:53 +02:00
87c74dfaa8 Check if stroll return value was clamped 2010-08-20 13:42:42 +02:00
aaada3f962 Merge branch 'master' into intset-split
Conflicts:
	src/Makefile
	src/t_set.c
2010-08-20 12:40:55 +02:00
1fb4e8def7 PERSIST: a fix and some basic test 2010-08-03 14:25:22 +02:00
2c572622fb no longer passing tests due to the new write-on-volatile semantics modified/removed 2010-08-03 13:08:32 +02:00
0c7a9dec65 Merge remote branch 'pietern/list-test' 2010-07-31 13:55:06 +02:00
673e1fb7e4 Change getDoubleFromObject to fail on NaN.
Return an error when the resulting value is not a number (NaN). Fix
ZUNIONSTORE/ZINTERSTORE to clean up when a weight argument is not a
double value.
2010-07-29 23:05:01 +02:00
d9e28bcf00 Fix ZUNIONSTORE/ZINTERSTORE to never store a NaN score.
When +inf and -inf are added, the result is NaN. We don't want NaN
scores in a sorted set, so agreed on the result of this operation being
zero.
2010-07-29 23:03:11 +02:00
715c801a07 Use a large value to consistently trigger a list encoding,
even when the list is swapped out and in again.
2010-07-29 13:56:35 +02:00
db0c43a70c removed test code having bad effects... 2010-07-27 14:46:39 +02:00
dd3f505ff5 Consistency test improved 2010-07-27 14:42:11 +02:00
80091bbaac STRLEN command implemented 2010-07-27 10:09:26 +02:00