Commit Graph

214 Commits

Author SHA1 Message Date
Daniele Alessandri 6ea96dcfea Added support for optionally weighted nodes in the hashring. 2010-03-31 11:47:33 +02:00
Daniele Alessandri 435fdeab75 Add support for microsecond read/write timeouts. 2010-03-31 10:40:14 +02:00
Daniele Alessandri 4f3ffe1217 Made ConnectionCluster::getConnection public, so client code can check to which server a command would be sent. 2010-03-30 15:47:39 +02:00
Daniele Alessandri 486244be8d Reworked HashRing::remove to handle hash collisions in a consistent way. 2010-03-30 15:41:31 +02:00
Daniele Alessandri 2cd056cab6 Added wrapping around for the consistent hashing algorithm. 2010-03-30 15:03:49 +02:00
Daniele Alessandri 1c286f29d1 executeCommand is now part of the IConnection interface; Moved the actual implementation of executeCommand() from Predis\Client to Predis\Connection. 2010-03-30 12:53:11 +02:00
Daniele Alessandri 631832eaf9 Updated CHANGELOG. 2010-03-29 12:48:54 +02:00
Daniele Alessandri 17dff871bc New command: HINCRBY (Redis v2.0-dev). 2010-03-29 12:46:43 +02:00
Daniele Alessandri f3d7e5d31b New command: HEXISTS (Redis v2.0-dev). 2010-03-29 12:46:37 +02:00
Daniele Alessandri 2d8007448f New command: CONFIG (Redis v2.0-dev). 2010-03-29 12:46:30 +02:00
Daniele Alessandri de1b8f45bc Fixed failing tests due to changes introduced in Redis commits 3ea27d3, cc3b01c and 653c924. 2010-03-29 12:46:23 +02:00
Daniele Alessandri a0350b2726 Updated CHANGELOG. 2010-03-17 08:20:13 +01:00
Daniele Alessandri 70907adcce Wrong parameters passed to ClientException on write errors over the network. 2010-03-16 22:53:50 +01:00
Daniele Alessandri 8391326de6 New command: HLEN (Redis v2.0-dev). 2010-03-16 17:40:24 +01:00
Daniele Alessandri 9e417d9bcf New command: HGETALL (Redis v2.0-dev). 2010-03-16 17:24:58 +01:00
Daniele Alessandri 13ae4c4ca0 New command: HVALS (Redis v2.0-dev). 2010-03-16 17:22:46 +01:00
Daniele Alessandri cd8674c2f7 New command: HKEYS (Redis v2.0-dev). 2010-03-16 17:21:55 +01:00
Daniele Alessandri 5787b4b9fd New command: HDEL (Redis v2.0-dev). 2010-03-16 17:20:25 +01:00
Daniele Alessandri 0fed80279a Renamed \Predis\Commands\HSet and \Predis\Commands\HGet to \Predis\Commands\HashSet and \Predis\Commands\HashGet for naming consistency. 2010-03-16 17:18:25 +01:00
Daniele Alessandri 1fe49863b4 Do not parse ResponseError instances. 2010-03-11 19:08:47 +01:00
Daniele Alessandri ee9868c123 Instead of passing around the actual socket resource, pass the Connection instance as argument. 2010-03-11 11:23:35 +01:00
Daniele Alessandri ce00cb14b9 Bugfix: the response parser for KEYS raises a E_WARNING when using iterators for multi bulk responses against Redis v2.0. 2010-03-10 23:45:04 +01:00
Daniele Alessandri daf6dbd7c2 // TODO stuff. 2010-03-10 18:48:32 +01:00
Daniele Alessandri c95125bae1 Allow a null parameters argument for the ConnectionParameters constructor (set to default). 2010-03-10 11:44:22 +01:00
Daniele Alessandri 53970bd006 Constants defined for Redis reply types in ResponseReader. 2010-03-10 11:27:28 +01:00
Daniele Alessandri 3b150d4d86 Get ResponseReader options values. 2010-03-10 11:18:25 +01:00
Daniele Alessandri 83c071b7ff Updated CHANGELOG. 2010-03-09 16:47:42 +01:00
Daniele Alessandri cadb7f8a3f Updated TODO. 2010-03-09 16:47:21 +01:00
Daniele Alessandri 52a1c06ac2 New command: ZINTER (Redis v2.0-dev). 2010-03-09 16:43:23 +01:00
Daniele Alessandri b21b6f8029 New command: ZUNION (Redis v2.0-dev). 2010-03-09 16:41:32 +01:00
Daniele Alessandri fa62b75b9a New command: ZREMRANGEBYRANK (Redis v2.0-dev). 2010-03-09 16:37:54 +01:00
Daniele Alessandri 52815adc0f New command: ZREVRANK (Redis v2.0-dev). 2010-03-09 16:33:03 +01:00
Daniele Alessandri 4e4c26c4e6 Updated CHANGELOG. 2010-03-09 16:17:32 +01:00
Daniele Alessandri 38e8c94f8b Enhancement: set how to handle errors returned by the server (throw a ServerException or return a ResponseError instance that holds the error message). 2010-03-09 16:01:33 +01:00
Daniele Alessandri c281891641 Enhancement: set how to handle multibulk replies (fetch the whole reply or stream it down to the user code). 2010-03-09 15:48:41 +01:00
Daniele Alessandri 425c9ade31 Fixed internal API divergences between the two merged branches. 2010-03-09 15:19:22 +01:00
Daniele Alessandri d03c7c42b2 Merge branch 'multibulk_streaming_new'
Conflicts:
	lib/Predis.php
2010-03-09 14:57:38 +01:00
Daniele Alessandri 9086cfc284 Merge branch 'response_reader' into integration 2010-03-09 14:53:53 +01:00
Daniele Alessandri d8b0c7f40c Reverting some obsoleted changes in preparation for a merge into the master branch. 2010-03-09 14:47:15 +01:00
Daniele Alessandri 51c7ef4566 Get the current ResponseReader associated to a Connection instance. 2010-03-09 14:07:41 +01:00
Daniele Alessandri 84ea64a9ee Enhanchement: added the ability to set options on a ResponseReader instance. 2010-03-09 14:06:10 +01:00
Daniele Alessandri e04ed827d4 Get the current ResponseReader associated to a Client instance. 2010-03-09 13:00:43 +01:00
Daniele Alessandri 5cae45282d Fixed tests against the current Redis master branch. 2010-03-09 12:54:18 +01:00
Daniele Alessandri 011d544d06 Fixed a small oversight. 2010-03-09 12:44:37 +01:00
Daniele Alessandri c6f97a7946 New commands: HSET and HGET (Redis v2.0-dev). NOTE: this is the beginning of the Hashes awesomeness in Redis! 2010-03-06 09:30:37 +01:00
Daniele Alessandri c06f9e34bf Added tests for DISCARD. 2010-03-04 14:18:38 +01:00
Daniele Alessandri ac8172235f Added tests for ZRANK. 2010-03-04 14:09:56 +01:00
Daniele Alessandri 5aaec9d11b Added a test for SUBSTR on integer-encoded values. 2010-03-04 13:58:05 +01:00
Daniele Alessandri 3e0d9c8400 Added tests for SUBSTR. 2010-03-04 12:41:51 +01:00
Daniele Alessandri 9ac0d26a48 Minor code rearrangements. 2010-03-04 12:29:23 +01:00