Daniele Alessandri
98aacd8d9a
Back to development for the next patch release.
2013-11-02 18:19:31 +01:00
toretto
4824af1563
Added "Latest Stable Version" and "Total Downloads" Badges
2013-08-31 10:51:10 +02:00
Daniele Alessandri
cb18d67b6a
Update CHANGELOG and bump VERSION.
v0.8.4
2013-07-27 11:13:54 +02:00
Daniele Alessandri
4576dc029f
Add LICENSE and phpunit.xml.dist in package.ini for Pear.
...
This commit addresses issues #124 and #126 . LICENSE will be installed
with the "doc" role while phpunit.xml.dist will be installed with the
"test" role.
[ci skip]
2013-06-17 11:16:07 +02:00
Daniele Alessandri
aa458a1922
Merge pull request #123 from drealecs/doctype_fixes
...
some PHPDoc fixes in lib
2013-06-03 03:04:10 -07:00
Alexandru Patranescu
2d2930d24f
some PHPDoc fixes in lib
...
and removed some unused imports also
2013-06-03 00:06:41 +03:00
Daniele Alessandri
7e0ec1a265
Update CHANGELOG.
...
[ci skip]
2013-05-31 11:52:47 +02:00
Daniele Alessandri
04e597ebba
Merge remote-tracking branch 'origin/pr/116' into v0.8
2013-05-31 11:30:30 +02:00
Daniele Alessandri
d681bff4ab
Merge branch 'github/pr/114' into v0.8
2013-05-31 10:47:58 +02:00
Daniele Alessandri
3dea41aa66
Add tests for prefixed Predis\PubSub\DispatcherLoop.
2013-05-31 10:39:46 +02:00
Daniele Alessandri
69c66e157f
Make callbacks properties protected in the DispatcherLoop class.
...
This makes easier to extend the class. The underlying pub/sub iterator
property is still private, but can be accessed via public getter method.
2013-05-31 10:21:21 +02:00
Daniele Alessandri
dd50cfe47e
Slightly rework original pull request.
2013-05-31 10:17:54 +02:00
Daniele Alessandri
8451146d38
Expose underlying client object from pub/sub iterators.
2013-05-31 10:17:08 +02:00
Thomas Orozco
d45ce35923
Use a random IP when a host has several IPs.
...
Using gethostbyname, we will reuse the same (first) IP address for
each request. Here, we choose the IP we use randomly.
This is practical in a case where we have multiple redis read-only
slaves that can't invidually support the full application load, but are
accessible through a single hostname.
2013-05-11 14:08:51 -07:00
Eloi Poch
6cd124cc59
Fix DispatcherLoop error with client prefix keys
...
DispatcherLoop works properly if a client have configured a
prefix for the keys or not
2013-04-20 13:02:17 +02:00
Daniele Alessandri
d6fa4a3292
Augment exception message with basic server details on connection error.
...
Providing a basic hint in the exception message about the server that caused
a connection exception could be useful especially with aggregated connections.
This is in response to issue #110 .
2013-03-30 16:16:13 +01:00
Daniele Alessandri
5b771704d3
Handle DUMP and RESTORE with Predis\Connection\PredisCluster.
2013-03-30 14:38:49 +01:00
Daniele Alessandri
68d972a1b1
Merge remote-tracking branch 'origin/pr/111' into v0.8
2013-03-27 15:11:00 +01:00
marcosQuesada
4bf035918d
setting medium timeout on slow tests
2013-03-23 00:57:36 +01:00
Daniele Alessandri
94c4e2ffee
Fix handling of scripted commands with redis-cluster hash strategy.
...
A missing "use" directive was preventing the hash strategy to properly
use the specific methods of Predis\Command\ScriptedCommand, falling back
to analyzing the raw arguments array of the command.
2013-03-16 16:24:59 +01:00
Daniele Alessandri
6e2fd181f1
Make sure key prefixing is skipped when command has no arguments.
...
Actually this was already the case for certain commands, but some of them
was left unguarded for such cases. This commit also fixes #109 .
The behaviour of silently skipping key prefixing when a command has no
arguments may change in the future so we added explicit tests as guards
for future changes. Predis\Command\Processor\KeyPrefixProcessor will
continue to skip key prefixing on empty arguments, regardless.
2013-03-16 16:00:33 +01:00
Daniele Alessandri
1c21fcc5b3
Fix strict warnings running command test generator script.
2013-03-16 13:23:46 +01:00
Daniele Alessandri
531261b0fc
Add DUMP and RESTORE to the server profile for Redis 2.6.
...
Closes issue #108 .
2013-03-16 13:21:24 +01:00
Daniele Alessandri
7434a9bd0e
Add the WITHSCORES modifier only when option value is true.
...
Fixes issue #107 .
2013-03-16 12:37:00 +01:00
Daniele Alessandri
c4123ce7ce
Update CHANGELOG.
2013-03-16 12:16:52 +01:00
Daniele Alessandri
536992e277
Merge remote-tracking branch 'nitper/cluster_hmset' into v0.8
2013-03-16 12:11:44 +01:00
Daniele Alessandri
5a735aa670
Back to development for the next patch release.
2013-03-16 12:11:37 +01:00
nitper
15f2776d77
update cluster tests
2013-03-11 23:08:10 +00:00
nitper
dc1103582e
allow HMSET in clusters
2013-03-11 22:50:03 +00:00
Daniele Alessandri
8c0498a893
Bump VERSION and update CHANGELOG.
v0.8.3
2013-02-18 15:03:45 +01:00
Daniele Alessandri
aba24d0f6f
Remove a few more unnecessary strict comparisons.
2013-02-17 20:46:31 +01:00
Daniele Alessandri
a1df4f20da
Expose private method used to parse URI strings.
...
This is useful for 3rd party libraries such as PredisServiceProvider
so it makes sense to have it public and static.
2013-02-17 20:38:46 +01:00
Daniele Alessandri
116eaba75e
Deprecate the whole Predis\Helpers class.
2013-02-17 15:21:01 +01:00
Daniele Alessandri
de4bae3f9b
Prevent E_NOTICE messages on __destruct() if $parameters is not set.
...
This can only happen when throwing on invalid connection parameters,
this is a quick fix that will do for now.
2013-02-17 15:21:01 +01:00
Daniele Alessandri
b50a5975ac
Use a nicer looking version for the same code.
2013-02-17 15:21:01 +01:00
Daniele Alessandri
1c1b4096f6
Remove a few more unnecessary strict comparisons.
2013-02-17 15:20:57 +01:00
Daniele Alessandri
f8e4ba152f
Use hexadecimal notation.
2013-02-17 12:27:45 +01:00
Daniele Alessandri
6b6b73f5f4
Add getArgument($index) in Predis\Command\CommandInterface.
...
This method should have been part of the interface since start since
it is used through the library. We also do not specify a default value
for the index argument since it does not make much sense.
2013-02-17 12:22:00 +01:00
Daniele Alessandri
729e40d6c0
Use 0 to indicate no arguments for KEYS[] in Lua scripted commands.
...
We previously used FALSE for that but in the end it does not make much
sense. Luckily for us this does not represent a breaking change since
existing code will keep to work, so we can safely push this change into
the next patch release.
2013-02-16 17:40:49 +01:00
Daniele Alessandri
fbcfdc343e
Do not implicitly set multibulk replies on composable connections.
...
This should be done externally on the underlying protocol instance.
2013-02-16 17:05:38 +01:00
Daniele Alessandri
8cbcb09c4c
Remove a few unnecessary strict comparisons.
2013-02-16 17:05:12 +01:00
Daniele Alessandri
2781bd780f
Fetch connection factory directly from client options.
2013-02-16 14:36:04 +01:00
Daniele Alessandri
9675626aac
Add "tcp_nodelay" in the list of supported connection parameters.
...
[ci skip]
2013-02-16 12:14:05 +01:00
Daniele Alessandri
f8829985f7
Tweak CHANGELOG.
...
[ci skip]
2013-02-16 11:59:43 +01:00
Daniele Alessandri
e2e809c9d4
Fix test to handle different hashes generated on 64bits builds of PHP.
...
Just noticed it on Travis CI as they recently switched to 64bits PHP builds,
also great to see that the library seems to work fine anyway.
2013-02-16 11:46:42 +01:00
Daniele Alessandri
ef0067e1a4
Use slightly faster version of the same code.
...
Yet again, micro-optimizations here.
2013-02-16 11:32:29 +01:00
Daniele Alessandri
da343046e5
No need for strict comparison here.
...
Should be also slightly faster (at least on a micro-optimization scale).
2013-02-16 11:14:55 +01:00
Daniele Alessandri
76d6681f68
Fix unserialization of Predis/Connection/PhpiredisStreamConnection.
2013-02-16 11:14:55 +01:00
Daniele Alessandri
8d01be388d
Support TCP_NODELAY for stream-based connections on PHP >= 5.4.0.
...
This cannot be implemented for previous versions of PHP because we
need socket_import_stream() to extract the underlying socket resource
from the stream in order to be able to set the TCP_NODELAY flag.
2013-02-16 11:14:50 +01:00
Daniele Alessandri
c38376dcc4
Accepts callable as first argument of Predis\Client::__construct().
...
Users can then use callables to wrap the creation and initialization
of the underlying connection with custom strategies:
2013-02-15 11:36:19 +01:00