223 Commits

Author SHA1 Message Date
michael-grunder 8e433c4794 Merge branch 'php-numencode' 2012-08-16 12:40:48 -07:00
michael-grunder 691786bc7f Properly apply a prefix on sort(), sortAsc(), and sortDesc() methods with an
included unit test to make sure it's working properly.

This fixes issue #226
2012-08-08 16:09:57 -07:00
michael-grunder a568029864 Actually remove the test for now 2012-07-06 10:19:49 -07:00
michael-grunder a7122c3664 Remove test for now 2012-07-06 10:10:18 -07:00
michael-grunder 83f3440b88 PHP 5.4 number encode fix 2012-07-02 12:56:10 -07:00
michael-grunder f1231c98e2 TIME command 2012-06-05 09:04:10 -07:00
michael-grunder f295c1c9d6 Allow integer keys for MSET 2012-06-04 23:58:01 -07:00
Nicolas Favre-Felix 2e70c5a5a9 Merge branch 'reconnect-select' of https://github.com/0/phpredis into 0-reconnect-select 2012-05-27 22:24:58 +01:00
Nicolas Favre-Felix bcabe601b2 Fix EOLs 2012-05-27 22:14:03 +01:00
maxbeutel 0081e4dfce added testcase 2012-05-23 11:27:35 +02:00
michael-grunder fe02d5d89e Removed unused code and updated unit tests to use === comparison instead of ==. In addition, removed string conversion conditional as per Nicolasff 2012-05-20 16:59:51 -07:00
michael-grunder 6a533797e0 Added PIPELINE/MULTI unit test for EVAL, updated docs with new commands 2012-05-20 16:22:01 -07:00
michael-grunder 568aad3e4b Remove exclusion code from unit test 2012-05-19 15:10:18 -07:00
michael-grunder e89d38554a Fix segfault in _unserialize when we get badly formed data 2012-05-19 15:08:11 -07:00
michael-grunder f00ed2aad8 Unit tests for EVAL, EVALSHA, DUMP, RESTORE, _unserialize, and _prefix 2012-05-19 13:47:17 -07:00
Dmitri Iouchtchenko db3c3c5d2a Added SELECT after reconnect
This prevents the DB number from being reset to zero after a timeout and
subsequent automatic reconnect.
2012-05-08 22:50:36 -04:00
michael-grunder c9dbfeb29d Added optional string parameter to INFO 2012-05-06 17:55:50 -07:00
michael-grunder 3b87da6343 Remove unused vars, commented code for HINCRBYFLOAT 2012-05-04 18:26:47 -07:00
michael-grunder 24c1023de8 Fix data type for HINCRBYFLOAT unit test 2012-05-04 13:11:41 -07:00
michael-grunder d59b53b6b5 Implemented INCRBYFLOAT and HINCRBYFLOAT 2012-05-04 12:12:03 -07:00
Nicolas Favre-Felix 00b5784e8c Add test for GitHub issue #118. 2012-04-29 18:48:50 +01:00
Nicolas Favre-Felix 8d67222370 Convert first parameter to ZADD to string.
Fixes GitHub issue #121.
2012-04-29 18:36:01 +01:00
Nicolas Favre-Felix c4a5370a82 Add ECHO.
Covered by unit test; fixes GitHub issue #165.
2012-04-16 13:16:27 +01:00
Nicolas Favre-Felix 80767ee314 Fixed smembers test 2012-04-09 10:30:58 +01:00
Nicolas Favre-Felix 199d5e696f Fix issue with interned igbinary strings.
Possibly related to ticket #145.
2012-03-15 00:05:17 +00:00
Nicolas Favre-Felix 1a1a81bf62 Fixed issue with HDEL in serialize mode.
Addresses GitHub issue #114. Fixed unit test as well.
2011-12-30 13:50:39 +00:00
Nicolas Favre-Felix 45f41a4bd3 Make Redis Array tests work on 32-bit.
The custom key distribution function was returning negative
ring offsets. This fix makes sure we always return positive or zero.
2011-12-29 17:16:40 +00:00
Nicolas Favre-Felix c6672f0a96 Fixed weight type issue in ZUNION.
(Fixes GitHub issue #109).
2011-12-26 18:01:51 +00:00
Nicolas Favre-Felix d0d00341ff Make sure publish() can be called in a pipeline.
This will also make it possible to use publish()
in a MULTI/EXEC context. Fixes GitHub issue #104.
2011-12-13 19:54:13 +00:00
Nicolas Favre-Felix 78f0abf3ec Fixed crash on ZREM with missing parameter.
generic_multiple_args_cmd() checked for missing
parameters but was missing a return FAILURE when
the number of parameters was lower than expected.

A unit test was added. This fixes GiHub issue #102.
2011-12-11 22:32:57 +00:00
Nicolas Favre-Felix 67c6417a7a Added unit test for key distribution function. 2011-12-11 22:16:30 +00:00
Nicolas Favre-Felix 1ce8bcc534 Added missing DISCARD in RedisArray mode.
Also added a unit test covering this feature.
This commit fixes GitHub issue #87.
2011-11-27 19:52:03 +00:00
Nicolas Favre-Felix 9692ad980d Converted array tests to new format 2011-11-27 19:47:00 +00:00
Nicolas Favre-Felix 6cbbcfe997 Fixed unit tests. 2011-11-27 19:44:09 +00:00
Nicolas Favre-Felix 90a82d3d9c Fixed issue with ZSCORE in MULTI/EXEC context.
This addresses GiHub issue #78.
2011-11-09 13:33:27 +00:00
Nicolas Favre-Felix 27fc7c79a2 Bugfix for hgetall used with serializer.
Fixes issue #62.
Also started removing phpunit, it is such a pain to use.
2011-11-03 22:23:15 +00:00
Nicolas Favre-Felix 552e44fdf9 Fixed GitHub issues #57 and #58. 2011-10-10 13:36:29 +01:00
Nicolas Favre-Felix 2b22f2e994 Fixed ZADD parameter handling (Issue #55).
phpredis used to implement the variadic ZADD command with the "*"
zend parameter handler, which seems too recent even for PHP 5.2.4.
This commit handles variadic arguments in a more portable way and
adds a unit test for variadic ZADD.
2011-10-02 12:47:30 +01:00
Nicolas Favre-Felix 991dfa5600 Use less memory in array unit tests 2011-09-18 19:13:00 +01:00
Nicolas Favre-Felix 36af3782f3 Added memory test. 2011-09-18 19:12:03 +01:00
Nicolas Favre-Felix 0659328736 Added missing arrays.markdown and renamed tests 2011-09-18 17:41:43 +01:00
Nicolas Favre-Felix 1f5ebc15e1 Memory fixes. 2011-09-04 21:22:55 +01:00
Nicolas Favre-Felix 0c03ac7f49 Check for memory error, not fixed yet 2011-09-04 17:43:11 +01:00
Nicolas Favre-Felix 0ac4ab8560 More key locality tests, including a custom matching function 2011-09-04 16:55:56 +01:00
Nicolas Favre-Felix 893345e6e7 Added more unit tests 2011-09-04 16:31:31 +01:00
Nicolas Favre-Felix 1d56b20597 Multi/Exec support for MGET, MSET, and DEL. 2011-09-04 16:14:59 +01:00
Nicolas Favre-Felix 732366a739 Multi/exec, per node. 2011-09-04 15:31:34 +01:00
Nicolas Favre-Felix 5dffb96bd7 Added INI loader 2011-08-28 14:11:47 +01:00
Nicolas Favre-Felix 04bfb396f2 Better constructor 2011-08-28 13:33:21 +01:00
Nicolas Favre-Felix 3774d18397 Added rehashing and re-reading after redistribution 2011-08-28 13:16:21 +01:00