Commit Graph

396 Commits

Author SHA1 Message Date
Daniele Alessandri 898b038f48 Do not make useless calls to fread. 2011-01-12 18:17:35 +01:00
Daniele Alessandri aacf2bc65d Make reads from the socket stream more reliable in Predis\Protocols\FastTextProtocol. 2011-01-12 18:07:09 +01:00
Daniele Alessandri 11c490e978 Minor adjustments. 2011-01-11 22:16:30 +01:00
Daniele Alessandri db2469341f Remove useless stuff. 2011-01-11 16:36:19 +01:00
Daniele Alessandri c1108c6e92 Add an optional and faster protocol processor. 2011-01-10 12:59:04 +01:00
Daniele Alessandri c9567c8606 Add an optional 'on_connection_initialized' callback to client options. 2011-01-10 12:20:52 +01:00
Daniele Alessandri 014adfe75d Remove the method Predis\Network\TcpConnection::rawCommand(). 2011-01-09 21:24:09 +01:00
Daniele Alessandri 2853ba7cef Add the ability to set a different protocol processor on connection instances. 2011-01-09 15:55:55 +01:00
Daniele Alessandri 539a4bbdcd Remove the Predis\ConnectionManager class.
The functionalities provided by that class have been merged into Predis\Client.
2011-01-09 15:42:36 +01:00
Daniele Alessandri bf3776b47a Improve initialization code of Predis\Client instances. 2011-01-09 15:05:28 +01:00
Daniele Alessandri fe0a940f18 Add the new Predis\Protocols\IRedisProtocolExtended interface. 2011-01-09 14:53:20 +01:00
Daniele Alessandri c5169694ef Remove Predis\Client::setConnection(). 2011-01-09 14:41:32 +01:00
Daniele Alessandri a992d9d0b8 Better checks for arguments passed to Predis\ConnectionParameters. 2011-01-09 14:36:48 +01:00
Daniele Alessandri c94cf5ef32 Better checks for arguments passed to Predis\Network\UnixDomainSocketConnection. 2011-01-09 14:36:10 +01:00
Daniele Alessandri 5d37ea1258 Remove useless override. 2011-01-09 14:24:13 +01:00
Daniele Alessandri 8392f465cc Cache the generated connection ID. 2011-01-09 13:43:45 +01:00
Daniele Alessandri b3e7cfe408 Make multiple explicit calls to Predis\Client::connect() possible. 2011-01-09 12:08:05 +01:00
Daniele Alessandri b013bce140 Add missing method in the Predis\Network\IConnectionCluster interface. 2011-01-09 12:01:06 +01:00
Daniele Alessandri f1488534b6 Reduce lines of code. 2011-01-09 11:58:45 +01:00
Daniele Alessandri d1282261b8 Simplify the internals of Predis\Client when initializing a connection.
Note that the options set for a Predis\Network\IConnectionSingle instance
passed to the client are not automatically overridden anymore.
2011-01-09 11:49:40 +01:00
Daniele Alessandri f1223c1a90 Simplify the signature of Predis\Client::pushInitCommands(). 2011-01-09 10:59:54 +01:00
Daniele Alessandri bcfb568d1a Add new Predis\Client::getOptions() method. 2011-01-09 10:53:52 +01:00
Daniele Alessandri 48a47aa503 Add the Predis\Profiles\IServerProfile interface. 2011-01-09 10:46:54 +01:00
Daniele Alessandri 8eb59c8852 Add missing methods to Predis\Protocols\IRedisProtocol. 2011-01-08 20:09:23 +01:00
Daniele Alessandri cd9995b972 Add missing 'use' directives. 2011-01-08 18:18:02 +01:00
Daniele Alessandri 131e4c9d03 Rewrite Predis\ConnectionParams to leverage the Predis\Options namespace. 2011-01-08 18:17:57 +01:00
Daniele Alessandri cd828ab18a Add the new Predis\Options namespace and optimize Predis\ClientOptions. 2011-01-08 17:37:53 +01:00
Daniele Alessandri 33b71a085c Remove a useless method. 2011-01-08 01:57:47 +01:00
Daniele Alessandri 48762ec876 Fix argument name mismatch. 2011-01-08 01:42:39 +01:00
Daniele Alessandri 3b2681f2c8 Move some classes in new namespaces and refactor some code. 2011-01-08 00:45:46 +01:00
Daniele Alessandri 62b8569dc8 More changes but nothing set in stone yet.
The commands test suite passes all the assertions (woot!).
2011-01-07 20:35:39 +01:00
Daniele Alessandri f4309893bc Start a major rewrite of the internals of the library.
The public API of Predis\Client will be compatible with older releases, but
many of the core internal classes are going to change.
2011-01-07 17:50:54 +01:00
Daniele Alessandri df268a1143 Merge branch 'pullreq_18' 2011-01-06 00:27:45 +01:00
Daniele Alessandri d04c6d2670 Remove garbage. 2011-01-06 00:25:46 +01:00
Artur Kotyrba 8a76c8c849 Remove unused private method. 2011-01-05 23:03:53 +01:00
Artur Kotyrba fb30e22c30 Added possibility to use custom connection cluster classes in Predis\Client constructor.
Added three methods (used by \Predis\Client) to IConnectionSingle interface.
2011-01-05 22:05:21 +01:00
Daniele Alessandri 2bb763dbf6 Minor code style change. 2011-01-05 12:50:33 +01:00
Daniele Alessandri afff56d2ec Look for a closing curly brace in a string only after the index of the opening one when using key tags. 2011-01-05 12:49:08 +01:00
Daniele Alessandri d717d906e8 Optimize when a pair of curly brackets for key tagging is missing. 2011-01-05 12:44:37 +01:00
Daniele Alessandri 51352bcbb3 Create a new class to handle the old response type of KEYS (Redis v1.2). 2011-01-04 21:01:29 +01:00
Daniele Alessandri 2b809325e0 Use a faster method to detect errors when reading a line from the server. 2011-01-04 11:08:55 +01:00
Daniele Alessandri 306ed28c5d Reuse code a bit. 2011-01-04 10:55:39 +01:00
Daniele Alessandri d94ad9942f Use a local cache for handlers while iterating chunks of a multi-bulk reply. 2011-01-04 10:34:56 +01:00
Daniele Alessandri dcbd943505 Reduce overhead by directly managing reply handlers for multibulk replies. 2011-01-04 10:31:34 +01:00
Daniele Alessandri b74e2c22f7 Rewrite the bulk reply handler (more compact and faster code). 2011-01-02 22:22:07 +01:00
Daniele Alessandri 48728d2672 More strict check of the length argument for a network read. 2011-01-02 22:05:27 +01:00
Daniele Alessandri e134e21b78 Remove a useless check for the payload length. 2011-01-02 21:55:28 +01:00
Daniele Alessandri f0f1647773 Use an explicit index to add values to the multi-bulk reply array. 2011-01-02 21:51:53 +01:00
Daniele Alessandri d270205a8c Nothing fancy, and hardly an optimization. 2011-01-02 21:50:14 +01:00
Daniele Alessandri a1db042d17 Avoid allocating an iterator to traverse the arguments list of a command. 2011-01-02 21:42:54 +01:00