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
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
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
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
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
7a984e7b76
Fix wrong phpdoc.
...
Thanks @Aliance for spotting this oversight.
2015-07-03 12:12:39 +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
08129999f8
Merge remote-tracking branch 'srhnsn/v1.0'
2015-01-02 13:33:40 +01:00
Daniele Alessandri
1e774f4686
Apply minor CS fixes and trim spurious spaces.
2015-01-02 12:12:23 +01:00
Daniele Alessandri
a0db60e9ce
Merge remote-tracking branch 'nicchap/v1.0'
...
Conflicts:
VERSION
package.ini
src/Client.php
2015-01-02 12:09:23 +01:00
nicchap
a1977c1b61
Edited typos
...
Changed redeclaration error and added single return
2014-12-18 12:15:54 -05:00
nicchap
5a02204833
Added BitPos command
...
Added BitPos command
2014-12-18 11:09:00 -05:00
Serhan Şen
beb6c28c65
Apply read_write_timeout to Unix socket connections.
2014-12-16 20:40:13 +01:00
Daniele Alessandri
54d467e530
Add missing doc for zincrby in ClientContextInterface.
...
[ci skip]
2014-10-26 10:28:56 +01:00
Daniele Alessandri
dc984ca60d
Add missing doc for zincrby in ClientContextInterface.
...
[ci skip]
2014-10-26 10:28:33 +01:00
Daniele Alessandri
5e24d85c8a
Fix E_NOTICE emitted on empty response to INFO [section].
...
Empty responses can be returned when requesting an unsupported section
with the INFO command.
2014-10-25 17:46:34 +02:00
Daniele Alessandri
e2f4357ca3
Fix E_NOTICE emitted on empty response to INFO [section].
...
Empty responses can be returned when requesting an unsupported section
with the INFO command.
2014-10-25 17:45:00 +02:00
Daniele Alessandri
24e19a9b76
Fix bug in ZSCAN-based iterator when sorted sets have integer members.
...
When iterating a sorted set containing integer members, our iterator
abstraction based on ZSCAN was always returning "0" as a member value
after the first $member => $score pair because of a wrong assumption
on how the PHP function array_shift() (used internally to advance to
the next pair in our buffered response to ZSCAN) works.
Fixes #216 .
2014-10-21 11:58:11 +02:00
Daniele Alessandri
dc2cb3c639
Fix bug in ZSCAN-based iterator when sorted sets have integer members.
...
When iterating a sorted set containing integer members, our iterator
abstraction based on ZSCAN was always returning "0" as a member value
after the first $member => $score pair because of a wrong assumption
on how the PHP function array_shift() (used internally to advance to
the next pair in our buffered response to ZSCAN) works.
Fixes #216 .
2014-10-21 11:57:43 +02:00
Vitaly Chirkov
ed1e541dc6
Add missing doc for zincrby in ClientInterface
2014-10-21 11:10:05 +02:00
Vitaly Chirkov
a3300949fc
Add missing doc for zincrby in ClientInterface
2014-10-19 00:39:57 +04:00
Daniele Alessandri
76ee6a2f24
Merge remote-tracking branch 'github/pr/208'
...
Conflicts:
README.md
composer.json
2014-09-05 11:01:47 +02:00
Daniele Alessandri
69ad62b59d
Merge remote-tracking branch 'github/pr/208' into v1.0
2014-09-05 10:45:02 +02:00
Daniele Alessandri
ec099a3b6e
Back to development.
...
Forgot to do so earlier, as usual...
[ci skip]
2014-09-05 10:44:21 +02:00
Thibaud BARDIN
3d10be888c
Change order of throws
2014-09-01 03:10:08 +02:00
Thibaud BARDIN
0fc5c5ee77
[phpdoc] Fix missing throws of phpdoc headers.
2014-08-09 23:14:45 +02:00
Daniele Alessandri
99f4312a6f
Apply workaround for bug in versions of PHP < 5.3.9.
...
This change is needed to address a bug in older versions of PHP 5.3
affecting inheritance (see https://bugs.php.net/bug.php?id=66818 ).
2014-08-08 15:49:05 +02:00
Daniele Alessandri
65c2f4bc4f
Back to development.
...
[ci skip]
2014-08-08 13:57:05 +02:00
Daniele Alessandri
d4be306d0a
... and here comes Predis v1.0.0!
2014-08-01 11:59:50 +02:00