Daniele Alessandri
c4b592298c
Skip integration tests for HyperLogLog commands on Redis < 2.8.9.
...
Caught this by running the test suite on TravisCI which still runs an
older version of Redis 2.8. We should find a more decent way to handle
differences in profiles when commands get added between patch releases
of Redis, our custom skip method will do for now.
2014-05-30 12:22:12 +02:00
Daniele Alessandri
0e3b105959
New commands: PFADD, PFCOUNT, PFMERGE (Redis 2.8.9).
...
Backported from the master branch.
Many thanks to @rubensayshi for his initial commits on this in #163 ,
but I had to start from scratch for the master branch first.
2014-05-30 12:01:17 +02:00
Daniele Alessandri
749bbfe0e3
Update CHANGELOG.
...
[ci skip]
Meh
2014-05-30 11:41:20 +02:00
Daniele Alessandri
c2ae1c612e
Merge remote-tracking branch 'github/pr/159' into v0.8
2014-05-28 12:58:03 +02:00
Daniele Alessandri
a85f89e2c7
Merge remote-tracking branch 'github/pr/170' into v0.8
2014-05-28 12:48:53 +02:00
thbourlove
dbb802f0f1
use phpunit 4.x instead of 3.x
2014-05-26 22:57:40 +08:00
thbourlove
64b79511bd
isntall requirement with a better way
2014-05-21 17:43:32 +08:00
thbourlove
5a9e747b01
add phpunit as dev requirement
2014-05-21 17:21:16 +08:00
Alexey Kupershtokh
cb0fbd01b4
Enable INCRBYFLOAT in cluster mode
2014-03-28 22:12:43 +07:00
Daniele Alessandri
83df2ef11c
Update CHANGELOG and README.
2014-03-25 15:02:22 +01:00
Daniele Alessandri
c94e5d3a10
Merge remote-tracking branch 'thbourlove/v0.8' into v0.8
2014-03-25 14:51:22 +01:00
Daniele Alessandri
c90fbfc0ff
Failures for PHP 5.6 on Travis CI are not allowed anymore.
2014-03-25 14:31:04 +01:00
Daniele Alessandri
21d6f0e7c6
Update CHANGELOG.
2014-03-25 14:29:05 +01:00
Daniele Alessandri
f4a950b275
Merge remote-tracking branch 'thbourlove/server_info' into v0.8
2014-03-25 14:26:10 +01:00
thbourlove
5ec51c899f
original array format
2014-03-15 01:16:38 +08:00
thbourlove
e1d700dd0c
fix #154
2014-03-15 00:59:55 +08:00
Daniele Alessandri
809f76a7b3
Fix implementation for hash tags extraction from keys.
...
We now fully comply with the specifications defined by Redis.
2014-02-11 19:10:09 +01:00
Daniele Alessandri
ab6cbe7e10
Add PHP 5.6 to the build matix of Travis-CI.
...
Builds are allowed to fail for now as PHP 5.6 is still in alpha stage.
2014-02-11 16:34:40 +01:00
Daniele Alessandri
80bcb9f475
Add HHVM to the build matrix of Travis-CI for v0.8.
...
Travis-CI recently provisioned virtual machines with HHVM 2.4.0 which
fixed the issues preventing Predis v0.8 from working correctly.
2014-02-11 16:29:44 +01:00
Daniele Alessandri
c8e671a42a
[HHVM] Work around a bug in class_exists() with non-string values.
2014-02-11 16:24:09 +01:00
Daniele Alessandri
838e6af403
[tests] Adapt for testing with HHVM.
2014-02-11 15:58:38 +01:00
Daniele Alessandri
ba2ffb612a
Add support for key hash tags in redis-cluster (Redis 3.0.0b1).
...
Multi-keys operations are not allowed even when keys generate the same
hash but this will probably be supported in later betas of Redis which
means we will basically end up reusing the whole strategy used for
client-side sharding.
2014-02-11 15:33:07 +01:00
Daniele Alessandri
fdaf73987b
Update CHANGELOG.
2014-02-11 12:44:00 +01:00
Daniele Alessandri
50f8922df2
Update README about HHVM compatibility.
2014-02-11 12:44:00 +01:00
Daniele Alessandri
60733eb5c9
Make Predis v0.8 compatible with HHVM 2.4.0.
...
Since we cannot rely on the PHP version to detect the availability of
socket_import_stream(), we switched to function_exists(). As an added
bonus, using function_exists() is twice faster.
2014-02-11 12:44:00 +01:00
Daniele Alessandri
a13dd4e180
Back to development.
2014-02-11 12:44:00 +01:00
thbourlove
1678e486b1
use 2.8 as the default server version
2014-01-25 10:55:47 +08:00
Daniele Alessandri
5f2eea628e
Update CHANGELOG and bump VERSION.
v0.8.5
2014-01-16 15:10:29 +01:00
Daniele Alessandri
0f01b89d44
Bump year in LICENSE.
...
[ci skip]
2014-01-10 17:46:58 +01:00
Daniele Alessandri
9d0201ed9e
[bin] Add missing executable in the repository for new script.
2014-01-08 17:38:22 +01:00
Daniele Alessandri
0cead0245d
[bin] Add helper script to automate PEAR package creation.
...
Note that this script takes care of customizing `phpunit.xml.dist` so
that tests can be run as soon as the PEAR package has been installed
as requested in #126 .
2014-01-08 17:30:54 +01:00
Daniele Alessandri
0a4eed1dff
[tests] Use Predis\Autoload from include_path when not in repository.
...
This is useful only for running the test suite after installing the
PEAR package, see #126 for reference.
2014-01-08 17:22:15 +01:00
Daniele Alessandri
d2debfd43e
Apply some more minor phpdoc fixes.
2013-12-22 17:51:18 +01:00
Daniele Alessandri
9a1884d960
Merge branch 'v0.8-backport-fixes' into v0.8
2013-12-22 17:35:36 +01:00
Daniele Alessandri
a6dd685f8d
Run php-cs against source code.
2013-12-22 17:34:50 +01:00
Daniele Alessandri
f499d5695a
Explicitly return null value.
2013-12-22 17:34:50 +01:00
Daniele Alessandri
23c4b95a0b
Remove useless return statement.
...
Backported from da8a203 (master).
2013-12-22 17:34:50 +01:00
Daniele Alessandri
80cb31514a
[tests] Remove unused "use" directive.
2013-12-22 17:34:50 +01:00
Daniele Alessandri
6306509086
[tests] Fix a couple of innocuous glitches.
2013-12-22 17:34:50 +01:00
Daniele Alessandri
2aab474670
Apply more phpdoc fixes.
...
Backported from 6a577a0 (master).
2013-12-22 17:34:50 +01:00
Daniele Alessandri
d628c0f23b
[tests] Fix a couple of glitches in our base PHPUnit classes.
2013-12-22 17:34:50 +01:00
Daniele Alessandri
ad92618003
[tests] No need to reassign $exception.
...
Backported from 728d9dc (master).
2013-12-22 17:34:49 +01:00
Daniele Alessandri
0fb7674762
Fix phpdocs for fluent interfaces.
...
Backported from a092f6d (master).
[ci skip]
2013-12-22 17:34:49 +01:00
Daniele Alessandri
e778baa491
Make Pipeline::executeCommand() return $this for fluent interface.
...
Backported from 3befbb3 (master).
2013-12-22 17:34:49 +01:00
Daniele Alessandri
d88a280977
Make PhpiredisConnection::getAddress() static and protected.
...
This method is mostly an utility method which is the main reason for
it bein static, but can be useful to have it available when extending
this class.
This change was inspired by b9b899e (master) even though the original
commit is meant to fix an issue not affecting v0.8.
2013-12-22 17:34:49 +01:00
Daniele Alessandri
eb6cbef4e7
Remove erroneous duplication of INFO in Redis profiles.
...
This oversight didn't end up in a blatant bug only because the correct
handler definition for INFO replaced the old class in the profile.
Backported from 5065541 (master).
2013-12-22 17:34:49 +01:00
Daniele Alessandri
2aa771004d
Add a note about missing break in switch statement.
...
[ci skip]
2013-12-22 17:34:49 +01:00
Daniele Alessandri
43bf3096a0
Fix some errors in phpdocs.
...
Backported from 25cd430 (master).
2013-12-22 17:34:40 +01:00
Daniele Alessandri
317fa42891
Improve handling of -MOVED and -ASK responses.
...
This change improves code reusing and simplifies the internals of
our redis-cluster connection backend.
2013-12-21 12:00:44 +01:00
Daniele Alessandri
b45f87caf2
[tests] Add $message as third parameter for our custom assertions.
2013-12-19 11:51:45 +01:00