Commit Graph

410 Commits

Author SHA1 Message Date
Daniele Alessandri 784b33358d Check for null values when setting a protocol processor instance for a connection. 2011-02-15 18:05:02 +01:00
Daniele Alessandri 2b2ca8e8dc Remove trailing spaces in code. 2011-02-15 12:46:19 +01:00
Daniele Alessandri af03916369 Rename a couple of private fields. 2011-02-15 12:30:43 +01:00
Daniele Alessandri dcafee61a8 Fix wrong method signature. 2011-02-12 21:07:27 +01:00
Jordi Boggiano c1587ccf54 Fixed bug reading zero-length values from a bulk response 2011-02-12 19:16:16 +01:00
Daniele Alessandri 679c7ffdd5 Trade a tiny bit of speed for more code reuse. 2011-02-12 16:58:31 +01:00
Daniele Alessandri 03cff6a813 Fix wrong class lookup. 2011-02-12 16:17:00 +01:00
Daniele Alessandri f6bd5757af Repeat with me: do not blindly copy and paste. 2011-02-12 15:34:47 +01:00
Daniele Alessandri 8a145bc6c9 More reliable network writes in Predis\Protocols\TextProtocol. 2011-02-12 15:18:52 +01:00
Daniele Alessandri ddb3180700 Switch the default text protocol processor to the new and faster one. 2011-02-12 15:05:24 +01:00
Daniele Alessandri f7bef784af Add inline (p)subscribe via options on Predis\PubSubContext initialization. 2011-02-12 14:24:12 +01:00
Daniele Alessandri 68f77444b6 Use only one check for replies that should not be passed to a reply parser. 2011-01-14 17:08:45 +01:00
Daniele Alessandri b6d93b5b34 Promote the profile for Redis 2.2 as stable and use it as the default one for the client. 2011-01-13 12:30:06 +01:00
Daniele Alessandri 4e6ed1fd5b Do not use is_numeric() when it is not really needed (it is relatively slow). 2011-01-13 10:50:40 +01:00
Daniele Alessandri fc9deb68be Remove usage of constants in the protocol handlers. 2011-01-13 10:32:20 +01:00
Daniele Alessandri b47adffd4f Do not perform useless read operations in the bulk reply handler. 2011-01-13 10:28:39 +01:00
Daniele Alessandri 3d80ff489a Less lines of code please. 2011-01-12 22:49:19 +01:00
Daniele Alessandri 4705b27302 Add the 'on_retry' callback as an option for Predis\MultiExecContext. 2011-01-12 22:46:58 +01:00
Daniele Alessandri 92e2455189 Remove unused variables. 2011-01-12 18:39:27 +01:00
Daniele Alessandri e1d8ee5d9b Remove useless reference passing. 2011-01-12 18:38:15 +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 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