Commit Graph

643 Commits

Author SHA1 Message Date
Daniele Alessandri 82759cd6ec Change how parameters are handled internally. 2011-03-10 16:30:00 +01:00
Daniele Alessandri b5a89a0f50 Add a VERSION constant to Predis\Client. 2011-03-08 11:03:32 +01:00
Daniele Alessandri 2853214ddc Update FAQ. 2011-03-08 10:57:06 +01:00
Daniele Alessandri e5e7933aef Add missing file extension. 2011-03-07 19:01:39 +01:00
Daniele Alessandri a81f76d376 Add a FAQ file (it will also be used in the wiki). 2011-03-07 18:59:54 +01:00
Daniele Alessandri 9b17352d9c Transit from UNSTABLE to BETA. 2011-03-07 11:23:26 +01:00
Daniele Alessandri 14d4492ad6 Slight change, nothing serious here. 2011-03-07 11:12:20 +01:00
Daniele Alessandri 995de40734 Fix Predis\Network\PhpiredisConnection. 2011-03-06 16:20:37 +01:00
Daniele Alessandri 190b687789 Change how network resources are handled internally and also exposed to subclasses. 2011-03-06 14:45:59 +01:00
Daniele Alessandri e94fbc3287 Adjust the tests for SUBSTR/GETRANGE since the return value for empty string slices has been fixed in Redis 2.2.2. 2011-03-06 12:45:23 +01:00
Daniele Alessandri 826db07900 Force the test suite to use the 2.2 server profile for now. 2011-03-06 12:39:18 +01:00
Daniele Alessandri be4d01c071 Remove a useless method declaration. 2011-03-06 12:32:43 +01:00
Daniele Alessandri 74b6d05b48 Move the database info parsing bits for the reply to INFO in a separate function. 2011-03-06 12:24:51 +01:00
Daniele Alessandri 58eb4e2477 Make the reply parser for INFO < 2.4 somewhat backwards compatible when used against Redis >= 2.4. 2011-03-06 12:22:22 +01:00
Daniele Alessandri 3186da49b4 Parse allocation_stats if present in the INFO reply. 2011-03-06 12:14:19 +01:00
Daniele Alessandri 3f8b639e2b Change StreamConnection in order to disable read/write timeouts when the value of 'read_write_timeout' is also equal to 0. 2011-03-06 11:03:53 +01:00
Daniele Alessandri 6ce35c97e9 Update README. 2011-03-06 10:08:35 +01:00
Daniele Alessandri b03e6c4f02 Make CommandPipeline::recordCommand() overridable by subclasses. 2011-03-06 10:05:46 +01:00
Daniele Alessandri 7bef3abf91 Change the code for the initialization of the phpiredis reader resource. 2011-03-06 09:55:22 +01:00
Daniele Alessandri 3b4ef4f33e Update README. 2011-03-05 18:42:52 +01:00
Daniele Alessandri f668560a5a Implement ConnectionParameters::__toString(). 2011-03-05 16:36:34 +01:00
Daniele Alessandri 6c9b246b2b Implement a new command class for INFO to parse the new reply format for this command in Redis > 2.2. 2011-03-05 15:47:54 +01:00
Daniele Alessandri 878b338e87 Fix comment. 2011-03-05 12:27:02 +01:00
Daniele Alessandri 38e76cbbc8 Allow passing an array for the list of source keys to be used in ZUNIONSTORE/ZINTERSTORE. 2011-03-05 11:56:10 +01:00
Daniele Alessandri f8844ef8b8 Rename IServerProfile::registerCommand() to IServerProfile::defineCommand(). 2011-03-05 10:52:38 +01:00
Daniele Alessandri 3681c1e622 Clustered connections should use IConnectionSingle::executeCommand() to execute commands internally. 2011-03-05 10:52:31 +01:00
Daniele Alessandri 99c8acfc8c Clean up leftovers. 2011-03-04 19:38:47 +01:00
Daniele Alessandri 30bc53ee75 Rename method ICommand::getCommandId() to ICommand::getId(). 2011-03-04 19:37:10 +01:00
Daniele Alessandri 0d5fb3319d Move Predis\Command and Predis\ICommand to the Predis\Commands namespace. 2011-03-04 19:21:41 +01:00
Daniele Alessandri c3ce210150 Remove a useless 'use' directive. 2011-03-04 18:56:20 +01:00
Daniele Alessandri 8b749386df Implement Predis\Command::__toString(). 2011-03-04 17:17:49 +01:00
Daniele Alessandri 6abac4590d Rename protocol interfaces. 2011-03-04 17:00:23 +01:00
Daniele Alessandri a627b91be1 Fix some more namespacing issues. 2011-03-04 16:18:27 +01:00
Daniele Alessandri 5077996940 Add the ability to create new connections using uri strings, array of parameters or instances of Predis\ConnectionParameters. 2011-03-04 16:06:38 +01:00
Daniele Alessandri db807e7a91 Do not fail on undefined client options properties. 2011-03-04 15:42:45 +01:00
Daniele Alessandri 3021cbd76b Fix wrong name for private field. 2011-03-04 15:12:02 +01:00
Daniele Alessandri 2c4a9e92a6 Add the ability to define custom handlers for client options and connection parameters. 2011-03-04 15:10:43 +01:00
Daniele Alessandri d077aa67db Remove since it generates overhead for nothing really useful. 2011-03-04 13:05:28 +01:00
Daniele Alessandri 0af002b3b9 Update README. 2011-03-04 12:50:12 +01:00
Daniele Alessandri a3218721c1 Merge branch 'phpiredis_new_api' 2011-03-04 12:04:51 +01:00
Daniele Alessandri 21c959a451 Fix namespacing issues with Predis\ClientException. 2011-03-04 11:58:07 +01:00
Daniele Alessandri ba9c3ed3db Fix README. 2011-03-02 17:58:06 +01:00
Daniele Alessandri eba7f84335 Fix the validation of default values for Predis\Options\Option class. 2011-03-02 17:44:10 +01:00
Daniele Alessandri 1e1a904d1a Update the client features test suite (still needs more test coverage of the whole API). 2011-03-02 17:40:27 +01:00
Daniele Alessandri 33ffca23a0 Check if the socket extension is loaded. 2011-03-02 15:16:49 +01:00
Daniele Alessandri 6fada0c35c Add some notes. 2011-03-02 15:00:52 +01:00
Daniele Alessandri 99129fbf91 Implement a new Predis\Network\PhpiredisConnection class that internally uses phpiredis. 2011-03-02 12:28:42 +01:00
Daniele Alessandri 5431af0c4b Update examples to the new connection API design. 2011-03-02 10:11:58 +01:00
Daniele Alessandri 89c311d0de Complete redesign of the network connection API, it should make much more sense now. 2011-03-02 10:02:29 +01:00
Daniele Alessandri fda4f32f06 Rename server profile classes to comply with how underscores are interpreted in the PSR-0 standard. 2011-02-27 13:37:03 +01:00