Daniele Alessandri
df2e9f4e71
Fix prefix processor to handle variadic EXISTS (Redis >= 3.0.3).
2015-07-24 18:29:51 +02:00
Daniele Alessandri
6590c44a27
Run php-cs-fixer against codebase in src/ and tests/.
2015-07-24 18:04:42 +02:00
Daniele Alessandri
bb89cf67e2
[tests] Fix me being stupid here.
2015-07-24 17:35:27 +02:00
Daniele Alessandri
7c1d324f30
[tests] Apply some fixes and improvements and remove old stuff.
2015-07-24 17:26:06 +02:00
Daniele Alessandri
bb6287f22d
[tests] Fix obviously wrong annotation.
2015-07-24 16:20:50 +02:00
Daniele Alessandri
f315404649
Update CHANGELOG.
2015-07-24 16:06:31 +02:00
Daniele Alessandri
8c76bd6761
Do not parse response to SETNX into boolean value.
2015-07-24 15:52:59 +02:00
Daniele Alessandri
38fafb22ba
Do not parse response to MSETNX into boolean value.
2015-07-24 15:52:53 +02:00
Daniele Alessandri
5ce683be09
Do not parse response to SMOVE into boolean value.
2015-07-24 15:52:50 +02:00
Daniele Alessandri
e531d39f53
Do not parse response to SISMEMBER into boolean value.
2015-07-24 15:52:45 +02:00
Daniele Alessandri
fda9f022dd
Do not parse response to RENAMENX into boolean value.
2015-07-24 15:52:27 +02:00
Daniele Alessandri
44e92d8a2f
Do not parse response to PERSIST into boolean value.
2015-07-24 15:50:43 +02:00
Daniele Alessandri
e75b69f6fd
Do not parse response to MOVE into boolean value.
2015-07-24 15:50:38 +02:00
Daniele Alessandri
082c51146a
Do not parse response to EXPIREAT into boolean value.
2015-07-24 15:50:34 +02:00
Daniele Alessandri
b02e3f4911
Do not parse response to EXPIRE into boolean value.
2015-07-24 15:50:21 +02:00
Daniele Alessandri
87921f7a05
Do not parse response to PFADD into boolean value.
2015-07-24 15:50:10 +02:00
Daniele Alessandri
3fdfc50683
Do not parse response to HSETNX into boolean value.
2015-07-24 15:50:05 +02:00
Daniele Alessandri
ae26ecc8bf
Do not parse response to HSET into boolean value.
2015-07-24 15:50:01 +02:00
Daniele Alessandri
231a3440f7
Do not parse response to HEXISTS into boolean value.
2015-07-24 15:49:55 +02:00
Daniele Alessandri
ab20c52115
Do not parse response to EXISTS into boolean value.
...
Starting with Redis 3.0.3 the EXISTS command is variadic so that it is
possible to check for the existence of multiple keys in one request,
with the server returning the number of keys found.
This change could break codebases relying on strict comparison (===)
against a boolean value, but just doing $redis->exists('key') == TRUE
is totally fine.
2015-07-24 15:49:40 +02:00
Daniele Alessandri
2eaf3d8595
Remove useless if condition.
2015-07-24 12:40:08 +02:00
Daniele Alessandri
bb909c573d
No need to check the scheme here.
...
Bug introduced in v1.0-dev after changes to support redis scheme.
Fixes #268
2015-07-24 10:39:06 +02:00
Daniele Alessandri
35f135be30
Add support for the 'redis://' scheme in URI strings.
...
The URI string will be handled following the rules as described by the
the provisional IANA registration document that can be found on IANA's
website: http://www.iana.org/assignments/uri-schemes/prov/redis .
2015-07-23 19:16:05 +02:00
Daniele Alessandri
474f3ddbe7
Add missing command: MIGRATE (Redis 2.6.0).
...
Fixes #209 .
2015-07-23 17:22:53 +02:00
Daniele Alessandri
ae054fc7e1
[tests] Fix minor oversight.
2015-07-23 16:46:07 +02:00
Daniele Alessandri
8168def08f
Switch to container-based builds on Travis CI.
...
We do not need "sudo" anyway.
See http://docs.travis-ci.com/user/migrating-from-legacy/ for details.
2015-07-23 12:15:14 +02:00
Daniele Alessandri
15f3b6030c
[tests] Improve assert failure messages for replication stategy tests.
2015-07-23 11:38:49 +02:00
Daniele Alessandri
c0d1a74447
Fix missing BITPOS in replication strategy.
2015-07-23 11:30:32 +02:00
Daniele Alessandri
6882d08373
Add missing BITPOS command in key prefix processor.
...
See #265 .
2015-07-23 11:06:57 +02:00
Daniele Alessandri
871d526300
Exclude .php-version file.
...
[ci skip]
2015-07-19 09:35:52 +02:00
Richard Heelin
d84bca131b
Emit socket error if ipredis connection has been lost/reset.
...
The current code is checking for a failure (return false) or an empty buffer string, however
neither of these will be the case if the connection has been reset or has errored. According
to the docs for socket_recv, $buffer will be set to null if the connection is reset or their
is no data. As currently null is not allowed for, we enter an infinite loop, to prevent this
I've added null to the things we check before we emit a socket error. This prevents the
infinite loop and correctly results in an Exception if the connection is lost/reset.
Conflicts:
src/Connection/PhpiredisSocketConnection.php
2015-07-07 18:51:00 +02:00
Daniele Alessandri
5cd4f41424
[tests] Fix base test case class to handle required Redis versions.
...
This change is needed due to some internal changes in one of the
latest minor releases of PHPUnit 4.x that essentially broke how we
were checking for the required Redis version from method annotations.
2015-07-07 17:43:49 +02:00
Daniele Alessandri
b3bcf466f5
[tests] Adapt to internal encoding changes for lists in Redis 3.0.
2015-07-07 16:09:20 +02:00
Daniele Alessandri
24d8f68e7f
Support ZADD modifiers when using simplified command signature.
...
The NX|XX, CH and INCR modifiers for ZADD are available in Redis since
version 3.0.2. See http://redis.io/commands/ZADD for additional info.
2015-07-07 16:05:56 +02:00
Daniele Alessandri
0a8754f9b6
Merge remote-tracking branch 'github/pr/235'
2015-07-07 14:48:41 +02:00
Daniele Alessandri
614049cd12
[tests] Remove hhvm-nightly from Travis CI configuration.
...
See https://github.com/travis-ci/travis-ci/issues/3788 for details.
2015-07-07 14:42:10 +02:00
Daniele Alessandri
5911145d9f
[tests] It's 7.0 and not 5.7!
2015-07-07 14:40:34 +02:00
Daniele Alessandri
8029faf72a
[tests] Add PHP 5.7 to Travis CI configuration.
2015-07-07 13:23:09 +02:00
Daniele Alessandri
e2c08cfe88
Minor tweak in .editorconfig file.
...
[ci skip]
2015-07-06 18:42:41 +02:00
Daniele Alessandri
3b31b91ad8
Commit .editorconfig file.
...
See http://editorconfig.org for more info about EditorConfig
[ci skip]
2015-07-06 18:39:28 +02:00
Daniele Alessandri
7a984e7b76
Fix wrong phpdoc.
...
Thanks @Aliance for spotting this oversight.
2015-07-03 12:12:39 +02:00
Daniele Alessandri
33e6ee2e48
[tests] Implement test for #257 to guard against regressions.
2015-07-03 12:01:47 +02:00
Daniele Alessandri
c577c20481
Merge remote-tracking branch 'github/pr/258'
2015-07-03 11:05:42 +02:00
Dominic Scheirlinck
6fbe2d5fa3
Don't check for __invoke on non-objects
...
`method_exists` will cause autoloading for strings. Fixes #257
2015-06-16 15:55:20 +12:00
Michal Humpula
af48b30398
add zrevrangebylex command
2015-01-23 23:06:40 +01:00
Daniele Alessandri
b8decc75a8
Update CHANGELOG.
...
[ci skip]
2015-01-02 14:37:26 +01:00
Daniele Alessandri
32774c925a
Bump year in LICENSE.
...
[ci skip]
2015-01-02 13:44:54 +01:00
Daniele Alessandri
216795e475
Update CHANGELOG.
...
[ci skip]
2015-01-02 13:43:29 +01:00
Daniele Alessandri
08129999f8
Merge remote-tracking branch 'srhnsn/v1.0'
2015-01-02 13:33:40 +01:00
Daniele Alessandri
0400d7b581
Merge remote-tracking branch 'blocktrail/hhvm-pubsub-blockingread-test-v1.0'
2015-01-02 13:00:38 +01:00