Daniele Alessandri
05b111d6d2
Update comment.
2011-06-29 12:05:00 +02:00
Daniele Alessandri
fc51f23ca7
Return cURL errors on HTTP response codes >= 400.
...
By default the cURL extension does not trigger any error when fetching a
response with an HTTP code >= 400. Changing this behaviour is also useful to
intercept the 403 error generated when executing Redis commands disallowed
on Webdis by using ACLs.
2011-06-08 23:07:23 +02:00
Daniele Alessandri
b85bc00880
Add support for the 'connection_timeout' parameter with WebdisConnection.
2011-06-08 22:40:35 +02:00
Daniele Alessandri
86256f2819
Minor reorganization, nothing worth mentioning.
2011-06-08 21:56:11 +02:00
Daniele Alessandri
bc040fae6f
Change handling of unsupported methods in Predis\Network\WebdisConnection.
2011-06-08 21:53:54 +02:00
Daniele Alessandri
e7d2717ee1
Switch from pecl_http to the cURL extension to make requests against Webdis.
...
The cURL extension is easily found already packaged for various Linux
distributions, it provides everything needed and it seems to have a lower
overhead compared to pecl_http.
2011-06-08 21:43:23 +02:00
Daniele Alessandri
0de4af07dd
Fix wrong serialization for commands that do not have arguments.
2011-06-06 12:49:38 +02:00
Daniele Alessandri
ff7812282e
Slightly change how HTTP options are initialized and handled.
2011-06-06 12:18:37 +02:00
Daniele Alessandri
e5a85dfce8
Add support for HTTP basic access authentication.
...
With Webdis it is possible to define some access control rules to allow or
disallow certain commands and one of the possible configurations is based on
plain old HTTP authentication.
2011-06-05 22:24:03 +02:00
Daniele Alessandri
4b3ba03a3e
Disallow certain commands that are disabled or do not make sense with Webdis.
2011-06-05 21:43:55 +02:00
Daniele Alessandri
776501b31a
Use a faster approach to serialize the POST data for HTTP requests to Webdis.
2011-06-05 21:01:15 +02:00
Daniele Alessandri
2c8d256bdc
Reimport Predis\Network\WebdisConnection with updates.
...
I could have rebased the previous branch with master, but since it was only a
single file and its history was basically meaningless I preferred to start
from scratch.
2011-06-05 18:46:16 +02:00
Daniele Alessandri
0195a7488a
Fix a bug in Predis\Network\StreamConnection::writeBytes().
...
When PHP's fwrite() ends up writing only a part of $buffer over the network,
this method attempts to automatically write the rest of $buffer. Due to this
bug, the data being already sent to the server was not discarded from $buffer.
Usually fwrite() writes the whole $buffer in one go, but anyway this bug would
not have passed unnoticed since it results in malformed requests and Redis
would have surely returned a -ERR reply.
2011-06-05 17:05:04 +02:00
Daniele Alessandri
a8e063e855
Minor updates to README.
2011-06-05 10:19:02 +02:00
Daniele Alessandri
2cdcd297f0
Rename Predis\Client::pubSubContext() to Predis\Client::pubSub().
2011-06-04 18:47:59 +02:00
Daniele Alessandri
65c0336d2f
Use the shared initializer to initialize Pub/Sub and accept callbacks.
...
When a callback is specified, the client does not return a new instance
of Predis\PubSubContext but it invokes that callback on each message
received. The context can be aborted simply by returning FALSE from the
callback.
2011-06-04 18:41:38 +02:00
Daniele Alessandri
8c207f71bd
Removing leftovers.
2011-06-04 17:12:24 +02:00
Daniele Alessandri
42f4663050
Move Predis\ConnectionException to Predis\Network\ConnectionException.
2011-06-04 16:00:35 +02:00
Daniele Alessandri
3801928e0d
Move Predis\ProtocolException to Predis\Protocol\ProtocolException.
2011-06-04 15:53:31 +02:00
Daniele Alessandri
d59556cae1
Rename the Predis\Protocols namespace to Predis\Protocol.
2011-06-04 15:45:01 +02:00
Daniele Alessandri
667ce97213
Remove a useless return statement.
2011-06-04 15:27:36 +02:00
Daniele Alessandri
101fffbabe
Do not check for the existence of a UNIX domain socket file in userland.
...
Now Predis throws an instance of Predis\ConnectionException when trying to
connect to an instance of Redis on a non-existent UNIX domain socket file.
2011-06-04 15:19:06 +02:00
Daniele Alessandri
b35dcd515b
Change the code layout of private/protected fields.
2011-06-02 23:49:46 +02:00
Daniele Alessandri
df0943120e
Add a fire-and-forget executor for pipelines.
2011-06-02 23:44:49 +02:00
Daniele Alessandri
b72b12c5cd
Fix wrong exception being thrown on invalid instance types passed to 'executor'.
2011-06-02 23:41:12 +02:00
Daniele Alessandri
3f2814c254
Change the code layout of private/protected fields.
2011-06-02 18:53:53 +02:00
Daniele Alessandri
1bd4a25e36
Remove code comments in the exception classes. Descriptions will be added again later with proper documentation.
2011-06-02 18:43:52 +02:00
Daniele Alessandri
24aaa2ac23
Nothing relevant, just reorganizing some private members.
2011-06-02 17:52:22 +02:00
Daniele Alessandri
ba4ebb3799
Make the specialized pipeline and transaction initializer methods of Predis\Client protected.
2011-06-02 17:37:33 +02:00
Daniele Alessandri
087b8b0b2b
Pass a transaction instance as the first argument of Predis\Transaction\AbortedMultiExecException.
2011-06-02 17:34:06 +02:00
Daniele Alessandri
b3910466c9
Clean up a bit the private transaction initializer method of Predis\Client.
2011-06-02 17:25:04 +02:00
Daniele Alessandri
6ad73c782a
Move classes related to MULTI/EXEC abstraction to the Predis\Transaction namespace.
2011-06-02 17:20:18 +02:00
Daniele Alessandri
fee3866f54
Make it possible to pipeline instances of Predis\Command\ICommand directly.
2011-06-02 16:53:16 +02:00
Daniele Alessandri
dfad0d3d24
Rename private variables.
2011-06-02 16:44:52 +02:00
Daniele Alessandri
1ba1408d39
Move the handling of pipeline options inside the pipeline class.
2011-06-02 16:41:17 +02:00
Daniele Alessandri
e048ac2d51
Move the PipelineContext class in the Predis\Pipeline namespace.
2011-06-02 16:03:33 +02:00
Daniele Alessandri
fb3088b4d3
Redis 2.4 has now its server profile (but it's not the default one yet). The development profile is now Redis 2.6.
2011-05-31 22:01:15 +02:00
Daniele Alessandri
962037321a
Make ZADD and ZREM variadic commands for Redis 2.4.
2011-05-31 21:28:37 +02:00
Daniele Alessandri
42521f2558
Do not use new classes for variadic RPUSH, LPUSH, SADD, SREM and HDEL in the 2.4 profile.
2011-05-31 21:26:04 +02:00
Daniele Alessandri
2012963ed0
Add the Predis\IReplyObject interface (used to mark returned objects that must skip reply parsing).
2011-05-21 11:04:15 +02:00
Daniele Alessandri
deeb58644a
Fix missing change that should have been part of commit cc2349c.
2011-05-21 10:50:42 +02:00
Daniele Alessandri
9f05f50899
Why not using markdown when the FAQ is actually a markdown file?
2011-05-19 12:46:55 +02:00
Daniele Alessandri
fd97cd1bad
Update the FAQ with details on the missing support for transparent (de)serialization of values.
2011-05-19 12:44:47 +02:00
Daniele Alessandri
cc2349c785
Change how error messages for server-side errors are handled.
2011-05-14 10:34:22 +02:00
Daniele Alessandri
8efe76ad60
Make Predis\Commands\ServerEvalSHA inherited from Predis\Commands\ServerEval.
2011-05-13 21:36:25 +02:00
Daniele Alessandri
2010774b68
New command: EVALSHA (Redis v2.4-dev).
2011-05-13 21:23:02 +02:00
Daniele Alessandri
909b06e805
Add support for transparent key prefixing to EVAL and the Predis\Commands\ScriptedCommand class.
2011-05-13 20:22:06 +02:00
Daniele Alessandri
13ac03e134
Merge branch 'redis_scripting'
2011-05-13 20:06:34 +02:00
Daniele Alessandri
092b822033
Add an example for server-side scripting with Lua using Predis abstractions.
2011-05-13 20:06:06 +02:00
Daniele Alessandri
0e0cd865e7
Change the default value for the number of arguments used to populate KEYS.
2011-05-13 19:55:24 +02:00