Commit Graph

256 Commits

Author SHA1 Message Date
Daniele Alessandri c781e91c2e Fix typos. 2010-05-22 16:10:17 +02:00
Daniele Alessandri 9f21cb12a2 Rename Predis\Distribution\IDistributionAlgorithm to Predis\Distribution\IDistributionStrategy. 2010-05-22 14:32:29 +02:00
Daniele Alessandri 69a0ed6d2f Suppress PHP notices in Predis\ConnectionCluster::getConnectionById() if the specified connection alias/index does not exist. 2010-05-22 12:27:14 +02:00
Daniele Alessandri 1f663f06be Implement Predis\Client::getClientFor() to initialize a new client from a single connection of a cluster by its alias. 2010-05-22 12:22:34 +02:00
Daniele Alessandri 5427bdcf22 Fast fail on exceptions different than Predis\ServerException or Predis\CommunicationException. 2010-05-22 11:56:45 +02:00
Daniele Alessandri 6c512784cb Merge branch 'pipeline_partial_failures'
Conflicts:
	lib/Predis.php
2010-05-22 11:34:57 +02:00
Daniele Alessandri e70b8ed38b Fix an old but harmless glitch in the serialization of inline commands with 0 arguments. 2010-05-21 21:10:34 +02:00
Daniele Alessandri 40d5b04278 Change the behavior of a test and add a reminder for a later in-depth examination of alternatives. 2010-05-21 21:02:09 +02:00
Daniele Alessandri f0d2551244 Fix a wrong namespace path in SafeExecutor::execute(). 2010-05-21 20:34:20 +02:00
Daniele Alessandri 4c8ecc02e5 Force disconnection in Predis\Pipeline\StandardExecutor when a Predis\ServerException is thrown to prevent protocol desynchronization between the client and the server. 2010-05-21 20:31:40 +02:00
Daniele Alessandri 84cb28e3ac Merge branch 'pubsub_experimental' 2010-05-18 12:25:10 +02:00
Daniele Alessandri 6e321a3530 Add the Predis\Client::pubSubContext() method to initialize a PubSub context from a client instance. 2010-05-18 12:23:53 +02:00
Daniele Alessandri 658272fe4b Fix wrong namespace path for EmptyRingException. 2010-05-18 11:46:42 +02:00
Daniele Alessandri fa6400dc22 Rename the \Predis\Utilities namespace to \Predis\Shared. 2010-05-17 20:05:10 +02:00
Daniele Alessandri 376dfe3451 Move IDistributionAlgorithm, HashRing and KetamaPureRing to the new Predis\Distribution namespace. 2010-05-17 19:59:54 +02:00
Daniele Alessandri a26932b3b5 Throw a more appropriate InvalidArgumentException when a non-callable argument is passed to instances of Predis\CommandPipeline and Predis\MultiExecBlock. 2010-05-17 19:46:28 +02:00
Daniele Alessandri eab70fb134 Implement the new EmptyRingException exception class. 2010-05-17 19:42:08 +02:00
Daniele Alessandri 5def6bebe3 Rename Predis\Pipeline\IExecutor to Predis\Pipeline\IPipelineExecutor. 2010-05-17 18:38:38 +02:00
Daniele Alessandri c01d185448 Bugfix: using the right variable in Predis\Pipeline\SafeExecutor makes things work. 2010-05-15 13:52:05 +02:00
Daniele Alessandri b3f340f830 Handling of partial failures and server errors in pipelines. 2010-05-15 12:30:33 +02:00
Daniele Alessandri f7bdd9d64b The default server profile for Predis\Client is now 2.0 (supports for Redis v2.0 out of the box). 2010-05-15 08:30:55 +02:00
Daniele Alessandri 4f0f2ca3eb ZUNION and ZINTER have been changed to ZUNIONSTORE and ZINTERSTORE for consistency (see Redis commit 5d373da). 2010-05-15 08:25:50 +02:00
Daniele Alessandri 7312dbe7fc Implemented the new \Predis\PubSubContext class. 2010-05-13 16:07:42 +02:00
Daniele Alessandri 27ebb1ddb5 New commands: PSUBSCRIBE and PUNSUBSCRIBE (Redis v2.0-dev). 2010-05-13 11:21:59 +02:00
Daniele Alessandri 0664bde7e9 Bugfix: replies to DEL commands must not be converted to a boolean response as DEL returns the number of keys removed. 2010-05-10 11:20:51 +02:00
Daniele Alessandri b623144881 Better support for options for ZUNION and ZINTER. 2010-04-27 21:49:03 +02:00
Daniele Alessandri c73918b991 Fix a couple of command aliases in the DEV profile. 2010-04-24 14:01:24 +02:00
Daniele Alessandri db6b8a3fc8 Parse response to HGETALL as an array of key => value. 2010-04-24 13:56:00 +02:00
Daniele Alessandri 513baa556c Process responses to HDEL as boolean values. 2010-04-24 13:09:18 +02:00
Daniele Alessandri de2d75e1d7 Process responses to HEXISTS as boolean values. 2010-04-24 12:47:09 +02:00
Daniele Alessandri 83ffdc8bc8 Various fixes for HMSET and HMSET. 2010-04-24 12:00:46 +02:00
Daniele Alessandri d79321ac8c Process responses to HSET as boolean values. 2010-04-24 11:26:35 +02:00
Daniele Alessandri 23de93582e Code formatting. 2010-04-24 09:19:51 +02:00
Daniele Alessandri 2eb68a0fee New command: SETEX (Redis v2.0-dev). 2010-04-23 21:38:22 +02:00
Daniele Alessandri a092ad46a3 New command: HSETNX (Redis v2.0-dev). 2010-04-23 21:32:10 +02:00
Daniele Alessandri b5e2b9eee9 New command: HMGET (Redis v2.0-dev). 2010-04-23 21:28:43 +02:00
Daniele Alessandri 7c2866f9fc Updating comments. 2010-04-23 21:23:23 +02:00
Daniele Alessandri 801c4647fd Slight code reorganization. 2010-04-23 21:22:46 +02:00
Daniele Alessandri b93b13133d New command: HMSET (Redis v2.0-dev). 2010-04-23 21:12:46 +02:00
Daniele Alessandri d9542c21c3 New commands: PUBLISH, SUBSCRIBE and UNSUBSCRIBE (Redis v2.0-dev). 2010-04-23 21:07:36 +02:00
Daniele Alessandri 0a0afec0ec Reminder for ZUNION. 2010-04-23 20:54:41 +02:00
Daniele Alessandri 7ae94ca6fb New \Predis\Protocol class. It's not really used right now... 2010-04-23 20:37:57 +02:00
Daniele Alessandri df9fef8900 Moved the IDistributionAlgorithm interface one level up in the namespace chain, from \Predis\Utilities to \Predis. 2010-04-23 20:27:59 +02:00
Daniele Alessandri d369f8bb74 Renamed the \Predis\Utilities\IRing interface to \Predis\Utilities\IDistributionAlgorithm. 2010-04-21 22:13:13 +02:00
Daniele Alessandri 8ae5197a38 Moved the initialization of the default \Predis\ResponseReader instance. 2010-04-21 21:32:19 +02:00
Daniele Alessandri f729793a9a Drop default support for Redis 1.0 and switch to the multi-bulk type for all of the Redis commands. 2010-04-19 16:50:50 +02:00
Daniele Alessandri ad2381a305 Users can now register their own \Predis\RedisServerProfile class with one or more aliases. 2010-04-19 15:37:43 +02:00
Daniele Alessandri 3121b1761e Changed the way arguments of SORT are prepared before serialization to be compatible with an eventual switch to multi-bulk requests. 2010-04-18 14:33:22 +02:00
Daniele Alessandri 81aef81b55 Changed the way arguments of SLAVEOF are prepared before serialization to be compatible with an eventual switch to multi-bulk requests. 2010-04-18 13:09:03 +02:00
Daniele Alessandri ea9c3388da No more implicit serialization for an array instance passed as the single argument of a MultiBulkCommand. 2010-04-18 12:49:38 +02:00