Commit Graph

108 Commits

Author SHA1 Message Date
michael-grunder f41efddc3a Playing around with gen_stub.php and attributes. 2022-11-17 09:35:40 -08:00
michael-grunder 0b7bd83f57 Add more docblocks and fix XAUTOCLAIM response handler.
- Finish adding docblocks with examples for all of the stream commands.
- Fix XAUTOCLAIM response handler (the reply has a slightly different
  structure to XCLAIM.
2022-11-15 23:29:45 -08:00
michael-grunder c14a9e3a01 Documentation: Normalize examples. 2022-11-15 18:16:57 -08:00
michael-grunder 53d142d93a Documentation: Add more docblocks and fix up formatting. 2022-11-15 15:09:24 -08:00
michael-grunder 2d365ee2ad Documentation: Format docs and add remaining GEO* docblocks 2022-11-15 11:26:29 -08:00
michael-grunder ef4699c726 Documentation: Rework more formatting and add example sections.
[skip ci]
2022-11-10 19:36:06 -08:00
michael-grunder 71758b091b Update stubs. 2022-11-09 19:24:47 -08:00
Michael Grunder 87fa36d6c7 Documentation: Formatting for setOption (#2250) 2022-11-09 13:55:15 -08:00
michael-grunder 6d595b35e9 Fix xtrim stub
[no ci]
2022-11-08 14:11:08 -08:00
michael-grunder 450904f75c Documentation: More docblocks with examples. 2022-11-07 18:17:48 -08:00
michael-grunder 17db23281a Documentation: Several more docblocks 2022-11-07 16:45:57 -08:00
michael-grunder f05ba81935 Documentation: Add several more docblocs
- Add a bunch more docblocks with examples
- Link every relevant RedisCluster method to the Redis docs.
2022-11-07 11:02:31 -08:00
michael-grunder cf63e96ec5 Documentation: More docblocks 2022-11-03 20:40:39 -07:00
michael-grunder a5c4790114 Documentation: More command docblocks 2022-11-03 17:47:21 -07:00
michael-grunder 854f3aa426 Documentation: Stream doc blocks and xtrim fix
- XTRIM needs to take the `$threshold` arg as a string since MINID is
  not a number.
2022-11-03 14:32:07 -07:00
michael-grunder b8679d7af1 Documentation: Several ZSET docblocks 2022-11-01 23:07:21 -07:00
michael-grunder bb06ffa380 Documentation: Even more docblocks 2022-11-01 16:38:23 -07:00
michael-grunder 980ea6b154 Documentation: More docblocks with examples
[skip ci]
2022-11-01 14:13:17 -07:00
michael-grunder b04684d442 Documentation: More docblocks with examples
[skip ci]
2022-11-01 12:23:38 -07:00
michael-grunder 70a55f3ef9 Documentation: More docblocks for eventual
[skip ci]
2022-11-01 11:05:38 -07:00
michael-grunder 9934088926 Documentation: Add several more docblocks. 2022-11-01 10:53:47 -07:00
michael-grunder f2cef8be06 More docblocks and refactor SLAVEOF command.
Add additional complete docblocks for a few more commands.

Refactor SLAVEOF handler to conform with more modern PhpRedis command
handlers.

Create REPLICAOF and deprecate SLAVEOF as Redis has done since 5.0.0.
2022-10-31 22:32:43 -07:00
michael-grunder 7d5db510a0 Documentation: SSCAN docblock and example
[skip ci]
2022-10-31 20:45:18 -07:00
michael-grunder 0dd2836f3c Documentation: Add a docblock for the set command. 2022-10-31 17:47:17 -07:00
michael-grunder cc2383f076 Documentation: Additional docblock headers
[skip ci]
2022-10-30 20:15:36 -07:00
michael-grunder fb3fb6f83f Copy docblock and fix DB option. 2022-10-30 16:19:22 -07:00
michael-grunder df50b2ad2d Documentation: More complete command docblocks
APPEND
clearLastError
DBSIZE
DECR[BY]
DEL

[skip ci]
2022-10-30 15:06:35 -07:00
Pavlo Yatsukhnenko e8f5b51748 Move options to the end list 2022-10-30 12:00:12 -07:00
Pavlo Yatsukhnenko 2bb6403883 Issue #1894
Add the CH, NX, XX arguments to GEOADD
2022-10-30 12:00:12 -07:00
michael-grunder c4aef95676 Documentation: More docblocks and examples
[skip ci]
2022-10-29 21:44:17 -07:00
michael-grunder e609fbe8aa Documentation: Add detailed docs for several set operations
SADD[ARRAY]
SSINTER[STORE]
SUNION[STORE]
SDIFF[STORE]

[skip ci]
2022-10-29 15:22:34 -07:00
michael-grunder e0b24be1ed Documentation: Add a BRPOPLPUSH example block
[skip ci]
2022-10-28 20:33:10 -07:00
michael-grunder a2b0c86f67 Documentation: Add detailed docblocks for list pop operations. 2022-10-27 21:57:30 -07:00
michael-grunder 2d8a8a4443 Documentation: [B]Z[M]POP* doc blocks 2022-10-27 15:21:43 -07:00
michael-grunder b9de0b9724 Documentation: Add docblocks for PF* commands and ping. 2022-10-27 09:37:09 -07:00
michael-grunder 71344612bc Documentation: Add docblocks for several more methods.
[skip ci]
2022-10-26 20:08:55 -07:00
michael-grunder 43da8dd9d8 Refactor BRPOPLPUSH and add B[LR]POP documentation 2022-10-26 18:55:55 -07:00
michael-grunder 375d093d94 Documentation: BITPOS and BITCOUNT 2022-10-26 15:20:31 -07:00
michael-grunder 6982941b0b Documentation: Document introspection methods 2022-10-26 14:59:05 -07:00
michael-grunder c4de86672b Documentation: Redis constructor 2022-10-26 12:40:14 -07:00
michael-grunder dc1f2398d0 TOUCH command
Implement the TOUCH command and refactor several of our "variadic key"
commands, which were previously all using their own specific handlers.

While refactoring the code, I changed `EXISTS` to require one key (it
had previously been set to require zero keys).

Additonally, it looks like we had a disparity in two commands which
should be idential to PhpRedis:  SINTERSTORE and SUNIONSTORE.
Previously, SINTERSTORE required only one argument but SUNIONSTORE 2.

I simply changed SUNIONSTORE to also only require a single argument,
since that argument could be an array.

```php
$redis->sInterStore(['dst', 'src1', 'src2']);
$redis->sUnionStore(['dst', 'src1', 'src2']);
```
2022-10-26 01:38:42 -07:00
Pavlo Yatsukhnenko d73f3f4b08 Issue #2106 2022-10-24 09:17:22 +03:00
michael-grunder 8c7c5a3aa2 Refactor SORT and add SORT_RO command
See #2068
2022-10-23 13:18:13 -07:00
michael-grunder 1343f50083 XGROUP DELCONSUMER and ENTRIESREAD
Refactor XGROUP and implement the new DELCONSUMER (Redis 6.2.0) and
ENTRIESREAD (Redis 7.0.0) options.  Additionally, add a proper phpdoc
block to the stub file.

See #2068
2022-10-23 11:37:20 -07:00
michael-grunder 71bcbcb973 Implement ZRANGESTORE and add ZRANGE options
* Add ZRANGESTORE command.

* Add Redis 6.2's `REV`, `BYLEX`, and `BYSCORE` to ZRANGE options.

* Refactor several ZRANGE family commands into a single reply and
  options handler, using PHP's new argument parsing macros.

* Extend our tests to use the new ZRANGE options.

See #1894
2022-10-22 12:46:01 -07:00
michael-grunder f3a408305a EVAL_RO and EVALSHA_RO
Implement Redis 7.0.0's readonly eval variants

See: #2068
2022-10-21 23:35:09 -07:00
michael-grunder d87f142826 Refactor SLOWLOG command
Refactor the slowlog command to use the new argument parsing API and
also change it so we no longer manually handle atomic/non-atomic
logic in the handler itself.
2022-10-19 12:58:39 -07:00
michael-grunder 36ef4bd8d1 Variadic CONFIG GET/SET
Redis 7.0.0 allows for getting and setting multiple config values as an
atomic operation.  In order to support this while maintaining backward
compatibility, the CONFIG command is reworked to also accept an array of
values or keys and values.

See: #2068
2022-10-19 09:15:16 -07:00
Nicolas Grekas b5ea5fd77f Fix stub 2022-10-16 14:34:18 -07:00
michael-grunder 44d03ca00a INFO with multiple sections
See #2068
2022-10-16 11:31:43 -07:00