From e831a3ef3436647a0844e01141ae3d2d7ce5a7c3 Mon Sep 17 00:00:00 2001 From: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> Date: Tue, 13 Jun 2023 12:41:44 +0300 Subject: [PATCH] 2.x main sync (#1317) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added support for Redis JSON module commands, added JSON.SET and JSON.GET commands (#868) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * add Redis stack tests * don't run tests twice * use * Update stack.yml * Rename workflows * Added version 6.x to workflow * Removed exception thrown to avoid version bug * Resolve conflicts within tests.yml * Codestyle fixes * Removew trailing whitespaces Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Added support for Bloom Filters module, added support for BF.ADD, BF.EXISTS commands (#874) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Added support for BF.ADD and BF.EXISTS commands * Fixed bug with incorrect tests skip * Changed module name according to original naming * Revert some old changes * Fixed misspelling Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Added support for Cuckoo Filter, added CF.ADD and CF.EXISTS commands (#907) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Added support for BF.ADD and BF.EXISTS commands * Fixed bug with incorrect tests skip * Changed module name according to original naming * Added support for CF.ADD and CF.EXISTS commands * Removed old files * Revert old changes Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended Bloom filters by implementing BF.INFO command (#886) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Added support for BF.ADD and BF.EXISTS commands * Added support for BF.INFO command * Fixed arguments data provider * Fixed bug with incorrect tests skip * Added command description * Removed unused import * Removed old directory Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extend Bloom filters by imlplementing BFMADD and BFMEXISTS commands (#887) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Added support for BF.ADD and BF.EXISTS commands * Fixed bug with incorrect tests skip * Added support for BF.MADD and BF.MEXISTS commands * Removed old file * Revert changes Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended Bloom Filters by implementing BF.RESERVE command (#888) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Added support for BF.ADD and BF.EXISTS commands * Added support for BF.INFO command * Fixed arguments data provider * Fixed bug with incorrect tests skip * Added support for BF.RESERVE command * Added command description * Codestyle fixes * Added missing test Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended Bloom Filter by implementing BF.SCANDUMP command (#889) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Added support for BF.ADD and BF.EXISTS commands * Fixed bug with incorrect tests skip * Added support for BF.SCANDUMP command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended Bloom Filters by implementing BF.LOADCHUNK command (#890) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Added support for BF.ADD and BF.EXISTS commands * Fixed bug with incorrect tests skip * Added support for BF.SCANDUMP command * Added support for BF.LOADCHUNK command * Codestyle fixes * Sort alphabetical Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended Bloom Filter support by implementing BF.INSERT command (#891) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Added support for BF.ADD and BF.EXISTS commands * Added support for BF.INFO command * Fixed arguments data provider * Fixed bug with incorrect tests skip * Added support for BF.RESERVE command * Added command description * Added support for BF.INSERT command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended Redis JSON support by implementing JSON.MGET (#892) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.MGET command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.DEL command (#909) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.DEL command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.OBJKEYS command (#911) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Add support for JSON.OBJKEYS command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.OBJLEN command (#913) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.OBJLEN command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.STRAPPEND command (#915) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.STRAPPEND command * Codestyle fix Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.STRLEN command (#917) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.STRLEN command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.NUMINCRBY command (#919) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.NUMINCRBY command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.ARRAPPEND command (#924) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.ARRAPPEND command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.ARRINDEX command (#927) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.ARRINDEX command * Codestyle fies Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.ARRINSERT command (#929) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.ARRINSERT command * Revert changes Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.ARRLEN command (#931) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Add support for JSON.ARRLEN command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.ARRPOP command (#933) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.ARRPOP command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.ARRTRIM command (#936) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.ARRTRIM command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.CLEAR command (#1004) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.CLEAR command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.RESP command (#1006) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.RESP command * Removed debugger Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.TOGGLE command (#1008) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.TOGGLE command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extended RedisJson support by implementing JSON.TYPE command (#1010) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.TYPE command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Extending RedisJson support by implementing JSON.FORGET command (#1012) * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Added CommandResolver, moved resolve command logic there, added ClientConfiguration object * Fixed test, added dependecies * Added resolved command to commands array * Used aggregation approach for modules * Added decorator to check Redis JSON module version * Added support for JSON.SET and JSON.GET commands * Added separate workflow for redis-stack tests * Changed docker imange name to correct one * Fixed indentation * Added test coverage for JSON.GET command * Changed module version resolving using annotations mapping * Re-written CommandResolver test * Update ClientInterface.php * Changes to CI, readme, removed unused modules from configuration * Fixed build badge URL * Refactored annotation check to be generic for each module * Fixed bug with incorrect tests skip * Fixed naming issue with nxXx argument * Removed redundant trait * Fixed NxXxArgument test * Added support for JSON.FORGET command Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Add Support for CF.ADDNX (#1048) * add support for CF.ADDNX * fix key name * fix wrong command * Added support for CF.COUNT command (#1052) Co-authored-by: Vladyslav Vildanov * Support CF.MEXISTS Command (#1081) * add support for CF.ADDNX * fix key name * fix wrong command * Support CF.MEXISTS Command * fix test * Add more assertions * Added support for CF.INFO command (#1082) Co-authored-by: Vladyslav Vildanov * Added support for CF.DEL command (#1080) Co-authored-by: Vladyslav Vildanov * Extended BloomFilters support by implementing CF.INSERT command (#1083) * Added support for CF.INSERT command * Override argument position offset value to default one * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov * Extended CuckooFilters support by implementing CF.RESERVE command (#1086) * Added support for CF.RESERVE command * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov * Added support for CF.LOADCHUNK, CF.SCANDUMP commands (#1085) Co-authored-by: Vladyslav Vildanov * Added support for CF.INSERTNX command (#1087) Co-authored-by: Vladyslav Vildanov * Added support for Count-Min Sketch with base commands CMS.INITBYDIM, CMS.INFO (#1088) * Added support for Count-Min Sketches submodule, added support for CMS.INITBYDIM adn CMS.INFO commands * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov * Extended Count-Min Sketch support by implementing CMS.INITBYPROB command (#1090) * Added support for CMS.INITBYPROB command * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov * Extended Count-Min Sketch support by implementing CMS.INCRBY and CMS.QUERY commands (#1091) * Added support for CMS.INCRBY and CMS.QUERY commands * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov * Extended Count-Min Sketch support by implementing CMS.MERGE command (#1092) * Added support for CMS.MERGE command * Added command description --------- Co-authored-by: Vladyslav Vildanov * Added support for TDigest sketch, added TDIGEST.CREATE, TDIGEST.INFO commands (#1093) Co-authored-by: Vladyslav Vildanov * Extended TDigest Sketch support by implementing TDIGEST.ADD command (#1094) * Added support for TDIGEST.ADD command * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov * Added support for TDIGEST.BYRANK command (#1096) Co-authored-by: Vladyslav Vildanov * Extended TDigest support by implementing TDIGEST.BYREVRANK command (#1097) * Added support for TDIGEST.BYREVRANK command * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov * Added support for TDIGEST.CDF command (#1098) Co-authored-by: Vladyslav Vildanov * Extended support by implementing TDIGEST.MAX command (#1099) * Added support for TDIGEST.MAX command * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov * Extended support by implementing TDIGEST.MIN command (#1100) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Support TDIGEST.MIN * Add support for TDIGEST.RANK command (#1103) Co-authored-by: Vladyslav Vildanov * Extended TDigest support by implementing TDIGEST.RESET command (#1104) * Added support for TDIGEST.RESET command * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov * Extended support by implementing TDIGEST.QUANTILE command (#1101) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Support TDIGEST.QUANTILE * fix returned value * fix test * fix linter error * add not exsist key test * fixes after review * fix linter problem * Add support for TDIGEST.REVRANK command (#1105) Co-authored-by: Vladyslav Vildanov * Added support for TDIGEST.TRIMMED_MEAN command (#1106) Co-authored-by: Vladyslav Vildanov * Added support for TOPK.RESERVE, TOPK.INFO commands (#1107) Co-authored-by: Vladyslav Vildanov * Added commands support (#1108) Co-authored-by: Vladyslav Vildanov * Added support for TOPK.INCRBY command (#1109) Co-authored-by: Vladyslav Vildanov * Added support for TOPK.QUERY command (#1110) Co-authored-by: Vladyslav Vildanov * Added support for TDIGEST.MERGE command (#1102) Co-authored-by: Vladyslav Vildanov Co-authored-by: shacharPash <93581407+shacharPash@users.noreply.github.com> * Codestyle fixes * Changed return annotation * Sync branch with 2.x (#1169) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Revert "Sync branch with 2.x (#1169)" (#1170) This reverts commit bc5f07daf906c925aea03ed01507ebe2abc02dd2. * Sync branch with 2.x (#1171) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Container commands naming fixes (#1172) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Changed container commands names into uppercase * Changed container commands names into uppercase --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Added support for RediSearch, implemented FT.CREATE command (#1143) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * add support for CF.ADDNX * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * fix key name * fix wrong command * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Pulling changes * Fix return type of ReplicationInterface::getSlaves (#1111) * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Codestyle fixes * Changed return annotation * Separate common and create interfaces * Codestyle fixes * Revert changes --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing FT.SEARCH command (#1145) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * add support for CF.ADDNX * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * fix key name * fix wrong command * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Pulling changes * Fix return type of ReplicationInterface::getSlaves (#1111) * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Added support for search command arguments, implemented FT.SEARCH command * Fixed vector field, removed default assignments, fixed tests * Tests fixes * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Merge conflicts * Codestyle fixes * Changed return annotation * Separate common and create interfaces * Codestyle fixes * Changed search arguments to condiional * Codestyle fixes --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing FT.INFO command (#1148) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Added support for FT.INFO command * Codestyle fixes * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.ALIASADD command (#1150) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Added support for FT.ALIASADD command * Fixed expected exception message * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.ALIASDEL command (#1151) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Added support for FT.ALIASADD command * Fixed expected exception message * Fixed vector field, removed default assignments, fixed tests * Added support for FT.ALIASDEL command * Codestyle fixes * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.ALIASUPDATE command (#1152) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Added support for FT.ALIASADD command * Fixed expected exception message * Fixed vector field, removed default assignments, fixed tests * Added support for FT.ALIASUPDATE command * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.DICTADD command (#1155) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Added support for FT.DICTADD command --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.DICTDEL support (#1156) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Added support for FT.DICTADD command * Added support for FT.DICTDEL command --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.DICTDUMP command (#1157) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Added support for FT.DICTADD command * Added support for FT.DICTDUMP command * Codestyle fixes --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.DROPINDEX command (#1158) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Added support for FT.DROPINDEX command * Changed arguments handling --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Added Redis stack test group for Redis stack tests (#1178) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Marked redis stack tests with appropriate annotation --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing FT.PROFILE command (#1161) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Added support for search command arguments, implemented FT.SEARCH command * Fixed vector field, removed default assignments, fixed tests * Tests fixes * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Merge conflicts * Added support for FT.PROFILE command --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.SPELLCHECK command (#1162) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Added support for FT.DICTADD command * Added support for FT.SPELLCHECK command * Added test group, fixed description --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.SYNUPDATE command (#1164) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Added support for FT.SYNUPDATE command * Added command description --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.SYNDUMP command (#1165) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Added support for FT.SYNUPDATE command * Added support for FT.SYNDUMP command * Fixed order number --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.TAGVALS command (#1166) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Added support for FT.TAGVALS command * Added example * Fixed tests --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.ALTER command (#1153) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added support for FT.ALTER command * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Added example, changed command arguments interface * Updated example --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch by implementing FT.SUGADD command (#1167) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Added support for search command arguments, implemented FT.SEARCH command * Fixed vector field, removed default assignments, fixed tests * Tests fixes * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Merge conflicts * Added support for FT.SUGADD command --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended RediSearch support by implementing FT.CONFIG SET and FT.CONFIG GET commands (#1173) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * add support for CF.ADDNX * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * fix key name * fix wrong command * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Pulling changes * Fix return type of ReplicationInterface::getSlaves (#1111) * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Codestyle fixes * Changed return annotation * Separate common and create interfaces * Codestyle fixes * Added support for FT.CONFIG SET, FT.CONFIG GET commands * Revert changes * Added examples * Added test group --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing FT.CONFIG HELP command (#1174) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * add support for CF.ADDNX * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * fix key name * fix wrong command * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Pulling changes * Fix return type of ReplicationInterface::getSlaves (#1111) * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Fixed vector field, removed default assignments, fixed tests * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Codestyle fixes * Changed return annotation * Separate common and create interfaces * Codestyle fixes * Added support for FT.CONFIG SET, FT.CONFIG GET commands * Revert changes * Added support for FT.CONFIG HELP command * Revert interface changes for bitcount command --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended Json support by implementing JSON.DEBUG command (#1182) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for JSON.DEBUG command * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing FT.SUGDEL command (#1183) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for FT.SUGDEL command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing FT.SUGGET command (#1185) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for FT.SUGGET command, added examples for suggestion API usage * Include SUGGET command files to codespell ignore * Added file extension --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing FT.SUGLEN command (#1186) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for FT.SUGLEN command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Unbreak RedisFactory interface (#1190) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Unbreak RedisFactory interface * Fixed tests to be more generic and less dependant on json module --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Low-level implementation for FT.CREATE command (#1187) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Implemented low-level solution with builder under the hood * Renamed variable * Codestyle fixes * New Schema implementation * Removed deprecated payload_field argument * Changed command argument name to more meaningful * Added arguments default values according to documentation * Changed letter to capital * Changed arguments inteface, using builder directly * Removed unused interface * Fix misspelling error * Fixed tests, remove old Schema object * Removed SchemaTest * Removed broken references --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan Co-authored-by: Chayim * Extended RediSearch support by implementing FT.AGGREGATE command (#1176) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for FT.AGGREGATE command * Added command usage example --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing FT.EXPLAIN command (#1159) * add support for CF.ADDNX * fix key name * fix wrong command * Pulling changes * Added support for FT.CREATE command * Fixed tests to choose correct DB * Added test coverage * Revert changes for missing commands * Added data types enums, added methods default assignments * Added support for search command arguments, implemented FT.SEARCH command * Fixed vector field, removed default assignments, fixed tests * Tests fixes * Added constants enum for Sortable argument, renamed arguments object * Codestyle fixes * Rename test class * Merge conflicts * Added support for FT.EXPLAIN command * Added FTEXPLAIN_Test to ignored file for eclint * Codestyle fixes * Fixed tests, added separate .editorconfig file --------- Co-authored-by: shacharPash Co-authored-by: Vladyslav Vildanov * Extended TimeSeries support by implementing TS.CREATE command (#1197) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for Time Series commands, TSCREATE command * Fixed param annotation --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.ADD command (#1198) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for Time Series commands, TSCREATE command * Fixed param annotation * Added support for TS.ADD command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * assert resource type before calling fclose on it (#1199) * Extended TimeSeries support by implementing TS.GET command (#1218) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.GET command * Codestyle fixes --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.DEL command (#1219) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.GET command * Codestyle fixes * Added support for TS.DEL command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.ALTER command (#1220) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.ALTER command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.INCRBY command (#1222) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.INCRBY commands * Fixed return type * Removed part of string to avoid spelling CI breaking --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.DECRBY command (#1223) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.DECRBY command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.MADD command (#1224) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.MADD command * Fixed exception message --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.MGET command (#1225) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.MGET command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Added alias option for Vector field (#1221) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added alias option for Vector field --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.INFO command (#1228) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.INFO command * Rename method to be more consistent --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.QUERYINDEX command (#1229) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.QUERYINDEX command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries by implementing TS.RANGE command (#1231) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.RANGE command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries by implementing TS.REVRANGE command (#1232) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.RANGE command * Added support for TS.REVRANGE command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing TS.CREATERULE command (#1226) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.CREATERULE command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.DELETERULE command (#1227) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.CREATERULE command * Added support for TS.DELETERULE command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.MRANGE command (#1233) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.MRANGE command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended TimeSeries support by implementing TS.MREVRANGE command (#1234) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for TS.MRANGE command * Added support for TS.MREVRANGE command --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Extended RediSearch support by implementing FT.CURSOR READ, DEL commands (#1196) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Added support for FT.CURSOR READ, DEL commands --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan * Codestyle fix * Changed idx name for different index types * Resolve merge conflicts between v2.x and main (#1247) * Added support for new arguments for BITPOS, BITCOUNT commands (#1045) * Added support for new arguments for EXPIRE, EXPIREAT commands (#1046) * Extended core support by implementing SORT_RO command (#1044) * Added support for SORT_RO command * Codestyle fixes * Added command description --------- Co-authored-by: Vladyslav Vildanov * fix deprecated call * Added support for container commands (#1049) * Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL * Changed ContainerInterface and AbstractContainer * Re-implement logic of abstract methods --------- Co-authored-by: Vladyslav Vildanov * Added stream commands to KeyPrefixProcessor (#1051) Co-authored-by: Vladyslav Vildanov * Fix return type of ReplicationInterface::getSlaves (#1111) * Codestyle fixes * Changed return annotation * Add option for disabling reads to slaves in replication topologies (#1168) * Add option for disabling reads to slaves in replication topologies (cherry picked from commit e132c312a97a9b071e5b206277070b0b5fa0fb9b) * remove empty line --------- Co-authored-by: Till Krüss * match `MasterSlaveReplication` (#1175) * match `MasterSlaveReplication` also the name of this method 😬 * Update SentinelReplication.php * Added CODEOWNERS file (#1181) * Added CODEOWNERS file * Update CODEOWNERS * Applied whole Redis commands path as @vladvildanov codeowner * Set @predis/team as Redis commands codeowners * Update CODEOWNERS --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss * Deprecate webdis and phpiredis (#1179) * Deprecate webdis and phpiredis * remove space * tag v2.1.2 * Extended core support by implementing FCALL_RO command (#1191) * typo * Extended core support by implementing ACL SETUSER, GETUSER, DRYRUN (#1193) * Added support for ACL GETUSER, SETUSER, DRYRUN commands * Change test to support Redis > 6.0.0 * Removed selectors check * Add missing stream key prefixes (#1230) * Added missing stream key prefixes * Tested stream command key prefixing * Codestyle fix * Changed idx name for different index types --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: Stephan Co-authored-by: David Bomba Co-authored-by: Till Krüss Co-authored-by: Jess Archer * Resolve merge conflicts * Revert changes * Codestyle fixes * Codestyle changes related to php-cs-fixer update (#1311) * Codestyle changes * Added missing type-hints * Added GETDEL command to KeyPrefixProcessor (#1306) * Added GETDEL command to KeyPrefixProcessor * Added test coverage * Codestyle fixes * Added timeout after FT.CREATE call * Codestyle changes * Added support for JSON.MERGE command (#1304) * Added support for JSON.MSET command (#1307) * Fixed subcommand test bug (#1313) * Removed old implementation * Added types, removed redundant codespell configuration --------- Co-authored-by: Vladyslav Vildanov Co-authored-by: Till Krüss Co-authored-by: shacharPash <93581407+shacharPash@users.noreply.github.com> Co-authored-by: Till Krüss Co-authored-by: Stephan Co-authored-by: shacharPash Co-authored-by: Chayim Co-authored-by: Patrick Jahn <33724206+p-jahn@users.noreply.github.com> Co-authored-by: David Bomba Co-authored-by: Jess Archer --- src/Client.php | 18 +-- src/ClientContextInterface.php | 2 + src/ClientInterface.php | 2 + src/Command/{Redis => }/Container/ACL.php | 2 +- .../Container/AbstractContainer.php | 2 +- .../Container/ContainerFactory.php | 6 +- .../Container/ContainerInterface.php | 8 +- .../FUNCTIONS.php} | 4 +- .../{Redis => }/Container/Json/JSONDEBUG.php | 4 +- .../{Redis => }/Container/Search/FTCONFIG.php | 4 +- .../{Redis => }/Container/Search/FTCURSOR.php | 4 +- src/Command/Redis/Json/JSONMERGE.php | 29 +++++ src/Command/Redis/Json/JSONMSET.php | 28 +++++ src/Command/Redis/SORT.php | 6 +- src/Command/Traits/Keys.php | 4 +- src/Configuration/Options.php | 8 +- src/Connection/RelayMethods.php | 4 +- src/PubSub/AbstractConsumer.php | 2 +- tests/PHPUnit/OneOfConstraint.php | 2 +- tests/PHPUnit/PredisTestCase.php | 19 ++-- tests/PHPUnit/RedisCommandConstraint.php | 2 +- tests/Predis/Cluster/PredisStrategyTest.php | 2 +- tests/Predis/Cluster/RedisStrategyTest.php | 2 +- .../Container/AbstractContainerTest.php | 2 +- .../Container/ContainerFactoryTest.php | 6 +- .../Predis/Command/Redis/EVALSHA_RO_Test.php | 8 +- tests/Predis/Command/Redis/EVAL_RO_Test.php | 10 +- tests/Predis/Command/Redis/EXPIREAT_Test.php | 8 +- tests/Predis/Command/Redis/FCALL_RO_Test.php | 4 +- tests/Predis/Command/Redis/FCALL_Test.php | 6 +- .../Command/Redis/Json/JSONMERGE_Test.php | 103 ++++++++++++++++++ .../Command/Redis/Json/JSONMSET_Test.php | 85 +++++++++++++++ tests/Predis/Command/Redis/LCS_Test.php | 6 +- .../Command/Redis/Search/FTSEARCH_Test.php | 3 + .../Predis/Command/Redis/ZINTERCARD_Test.php | 4 +- .../Predis/Command/Redis/ZINTERSTORE_Test.php | 6 +- tests/Predis/Command/Redis/ZINTER_Test.php | 4 +- .../Predis/Command/Redis/ZRANGESTORE_Test.php | 16 +-- .../Predis/Command/Redis/ZUNIONSTORE_Test.php | 6 +- tests/Predis/Command/Redis/ZUNION_Test.php | 4 +- .../Replication/ReplicationStrategyTest.php | 2 +- 41 files changed, 349 insertions(+), 98 deletions(-) rename src/Command/{Redis => }/Container/ACL.php (93%) rename src/Command/{Redis => }/Container/AbstractContainer.php (95%) rename src/Command/{Redis => }/Container/ContainerFactory.php (93%) rename src/Command/{Redis => }/Container/ContainerInterface.php (78%) rename src/Command/{Redis/Container/FunctionContainer.php => Container/FUNCTIONS.php} (84%) rename src/Command/{Redis => }/Container/Json/JSONDEBUG.php (82%) rename src/Command/{Redis => }/Container/Search/FTCONFIG.php (84%) rename src/Command/{Redis => }/Container/Search/FTCURSOR.php (85%) create mode 100644 src/Command/Redis/Json/JSONMERGE.php create mode 100644 src/Command/Redis/Json/JSONMSET.php rename tests/Predis/Command/{Redis => }/Container/AbstractContainerTest.php (98%) rename tests/Predis/Command/{Redis => }/Container/ContainerFactoryTest.php (93%) create mode 100644 tests/Predis/Command/Redis/Json/JSONMERGE_Test.php create mode 100644 tests/Predis/Command/Redis/Json/JSONMSET_Test.php diff --git a/src/Client.php b/src/Client.php index 1636cc6f..32b9b708 100644 --- a/src/Client.php +++ b/src/Client.php @@ -16,9 +16,9 @@ use ArrayIterator; use InvalidArgumentException; use IteratorAggregate; use Predis\Command\CommandInterface; +use Predis\Command\Container\ContainerFactory; +use Predis\Command\Container\ContainerInterface; use Predis\Command\RawCommand; -use Predis\Command\Redis\Container\ContainerFactory; -use Predis\Command\Redis\Container\ContainerInterface; use Predis\Command\ScriptCommand; use Predis\Configuration\Options; use Predis\Configuration\OptionsInterface; @@ -346,29 +346,29 @@ class Client implements ClientInterface, IteratorAggregate } /** - * @param $name + * @param string $name * @return ContainerInterface */ - public function __get($name) + public function __get(string $name) { return ContainerFactory::create($this, $name); } /** - * @param $name - * @param $value + * @param string $name + * @param mixed $value * @return mixed */ - public function __set($name, $value) + public function __set(string $name, $value) { throw new RuntimeException('Not allowed'); } /** - * @param $name + * @param string $name * @return mixed */ - public function __isset($name) + public function __isset(string $name) { throw new RuntimeException('Not allowed'); } diff --git a/src/ClientContextInterface.php b/src/ClientContextInterface.php index 0de20a32..95f1590e 100644 --- a/src/ClientContextInterface.php +++ b/src/ClientContextInterface.php @@ -178,7 +178,9 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this jsonforget(string $key, string $path = '$') * @method $this jsonget(string $key, string $indent = '', string $newline = '', string $space = '', string ...$paths) * @method $this jsonnumincrby(string $key, string $path, int $value) + * @method $this jsonmerge(string $key, string $path, string $value) * @method $this jsonmget(array $keys, string $path) + * @method $this jsonmset(string ...$keyPathValue) * @method $this jsonobjkeys(string $key, string $path = '$') * @method $this jsonobjlen(string $key, string $path = '$') * @method $this jsonresp(string $key, string $path = '$') diff --git a/src/ClientInterface.php b/src/ClientInterface.php index e46209df..924db1ec 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -187,7 +187,9 @@ use Predis\Response\Status; * @method int jsonforget(string $key, string $path = '$') * @method string jsonget(string $key, string $indent = '', string $newline = '', string $space = '', string ...$paths) * @method string jsonnumincrby(string $key, string $path, int $value) + * @method Status jsonmerge(string $key, string $path, string $value) * @method array jsonmget(array $keys, string $path) + * @method Status jsonmset(string ...$keyPathValue) * @method array jsonobjkeys(string $key, string $path = '$') * @method array jsonobjlen(string $key, string $path = '$') * @method array jsonresp(string $key, string $path = '$') diff --git a/src/Command/Redis/Container/ACL.php b/src/Command/Container/ACL.php similarity index 93% rename from src/Command/Redis/Container/ACL.php rename to src/Command/Container/ACL.php index 2699d37e..25f86cc3 100644 --- a/src/Command/Redis/Container/ACL.php +++ b/src/Command/Container/ACL.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container; +namespace Predis\Command\Container; use Predis\Response\Status; diff --git a/src/Command/Redis/Container/AbstractContainer.php b/src/Command/Container/AbstractContainer.php similarity index 95% rename from src/Command/Redis/Container/AbstractContainer.php rename to src/Command/Container/AbstractContainer.php index 6ba86d0f..950346ba 100644 --- a/src/Command/Redis/Container/AbstractContainer.php +++ b/src/Command/Container/AbstractContainer.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container; +namespace Predis\Command\Container; use Predis\ClientInterface; diff --git a/src/Command/Redis/Container/ContainerFactory.php b/src/Command/Container/ContainerFactory.php similarity index 93% rename from src/Command/Redis/Container/ContainerFactory.php rename to src/Command/Container/ContainerFactory.php index 79d3de09..68f39a33 100644 --- a/src/Command/Redis/Container/ContainerFactory.php +++ b/src/Command/Container/ContainerFactory.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container; +namespace Predis\Command\Container; use Predis\ClientConfiguration; use Predis\ClientInterface; @@ -18,7 +18,7 @@ use UnexpectedValueException; class ContainerFactory { - private const CONTAINER_NAMESPACE = "Predis\Command\Redis\Container"; + private const CONTAINER_NAMESPACE = "Predis\Command\Container"; /** * Mappings for class names that corresponds to PHP reserved words. @@ -26,7 +26,7 @@ class ContainerFactory * @var array */ private static $specialMappings = [ - 'FUNCTION' => FunctionContainer::class, + 'FUNCTION' => FUNCTIONS::class, ]; /** diff --git a/src/Command/Redis/Container/ContainerInterface.php b/src/Command/Container/ContainerInterface.php similarity index 78% rename from src/Command/Redis/Container/ContainerInterface.php rename to src/Command/Container/ContainerInterface.php index ce3989b5..b4e1b0e6 100644 --- a/src/Command/Redis/Container/ContainerInterface.php +++ b/src/Command/Container/ContainerInterface.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container; +namespace Predis\Command\Container; interface ContainerInterface { @@ -18,11 +18,11 @@ interface ContainerInterface * Creates Redis container command with subcommand as virtual method name * and sends a request to the server. * - * @param $subcommandID - * @param $arguments + * @param string $subcommandID + * @param array $arguments * @return mixed */ - public function __call($subcommandID, $arguments); + public function __call(string $subcommandID, array $arguments); /** * Returns containerCommandId of specific container command. diff --git a/src/Command/Redis/Container/FunctionContainer.php b/src/Command/Container/FUNCTIONS.php similarity index 84% rename from src/Command/Redis/Container/FunctionContainer.php rename to src/Command/Container/FUNCTIONS.php index d757a44f..5b5c7860 100644 --- a/src/Command/Redis/Container/FunctionContainer.php +++ b/src/Command/Container/FUNCTIONS.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container; +namespace Predis\Command\Container; use Predis\Response\Status; @@ -18,7 +18,7 @@ use Predis\Response\Status; * @method string load(string $functionCode, bool $replace = 'false') * @method Status delete(string $libraryName) */ -class FunctionContainer extends AbstractContainer +class FUNCTIONS extends AbstractContainer { public function getContainerCommandId(): string { diff --git a/src/Command/Redis/Container/Json/JSONDEBUG.php b/src/Command/Container/Json/JSONDEBUG.php similarity index 82% rename from src/Command/Redis/Container/Json/JSONDEBUG.php rename to src/Command/Container/Json/JSONDEBUG.php index b20baca0..0bf4e862 100644 --- a/src/Command/Redis/Container/Json/JSONDEBUG.php +++ b/src/Command/Container/Json/JSONDEBUG.php @@ -10,9 +10,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container\Json; +namespace Predis\Command\Container\Json; -use Predis\Command\Redis\Container\AbstractContainer; +use Predis\Command\Container\AbstractContainer; /** * @method array memory(string $key, string $path) diff --git a/src/Command/Redis/Container/Search/FTCONFIG.php b/src/Command/Container/Search/FTCONFIG.php similarity index 84% rename from src/Command/Redis/Container/Search/FTCONFIG.php rename to src/Command/Container/Search/FTCONFIG.php index 9e80b8c5..5f718d3d 100644 --- a/src/Command/Redis/Container/Search/FTCONFIG.php +++ b/src/Command/Container/Search/FTCONFIG.php @@ -10,9 +10,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container\Search; +namespace Predis\Command\Container\Search; -use Predis\Command\Redis\Container\AbstractContainer; +use Predis\Command\Container\AbstractContainer; use Predis\Response\Status; /** diff --git a/src/Command/Redis/Container/Search/FTCURSOR.php b/src/Command/Container/Search/FTCURSOR.php similarity index 85% rename from src/Command/Redis/Container/Search/FTCURSOR.php rename to src/Command/Container/Search/FTCURSOR.php index 4d47c9c0..1cd4fa87 100644 --- a/src/Command/Redis/Container/Search/FTCURSOR.php +++ b/src/Command/Container/Search/FTCURSOR.php @@ -10,10 +10,10 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container\Search; +namespace Predis\Command\Container\Search; use Predis\Command\Argument\Search\CursorArguments; -use Predis\Command\Redis\Container\AbstractContainer; +use Predis\Command\Container\AbstractContainer; use Predis\Response\Status; /** diff --git a/src/Command/Redis/Json/JSONMERGE.php b/src/Command/Redis/Json/JSONMERGE.php new file mode 100644 index 00000000..a1322283 --- /dev/null +++ b/src/Command/Redis/Json/JSONMERGE.php @@ -0,0 +1,29 @@ + $argumentsLength || - !is_array($arguments[static::$keysArgumentPositionOffset]) + static::$keysArgumentPositionOffset > $argumentsLength + || !is_array($arguments[static::$keysArgumentPositionOffset]) ) { throw new UnexpectedValueException('Wrong keys argument type or position offset'); } diff --git a/src/Configuration/Options.php b/src/Configuration/Options.php index de6504f7..3fff0412 100644 --- a/src/Configuration/Options.php +++ b/src/Configuration/Options.php @@ -67,8 +67,8 @@ class Options implements OptionsInterface public function defined($option) { return - array_key_exists($option, $this->options) || - array_key_exists($option, $this->input) + array_key_exists($option, $this->options) + || array_key_exists($option, $this->input) ; } @@ -78,8 +78,8 @@ class Options implements OptionsInterface public function __isset($option) { return ( - array_key_exists($option, $this->options) || - array_key_exists($option, $this->input) + array_key_exists($option, $this->options) + || array_key_exists($option, $this->input) ) && $this->__get($option) !== null; } diff --git a/src/Connection/RelayMethods.php b/src/Connection/RelayMethods.php index 0e460a6e..a52c4a03 100644 --- a/src/Connection/RelayMethods.php +++ b/src/Connection/RelayMethods.php @@ -32,7 +32,7 @@ trait RelayMethods * @param string $pattern * @return bool */ - public function onInvalidated(?callable $callback, ?string $pattern = null) + public function onInvalidated(?callable $callback, string $pattern = null) { return $this->client->onInvalidated($callback, $pattern); } @@ -129,7 +129,7 @@ trait RelayMethods * @param ?int $db * @return bool */ - public function flushMemory(?string $endpointId = null, int $db = null) + public function flushMemory(string $endpointId = null, int $db = null) { return $this->client->flushMemory($endpointId, $db); } diff --git a/src/PubSub/AbstractConsumer.php b/src/PubSub/AbstractConsumer.php index 653517a0..c9ea2d65 100644 --- a/src/PubSub/AbstractConsumer.php +++ b/src/PubSub/AbstractConsumer.php @@ -32,7 +32,7 @@ abstract class AbstractConsumer implements Iterator public const STATUS_SUBSCRIBED = 2; // 0b0010 public const STATUS_PSUBSCRIBED = 4; // 0b0100 - protected $position = null; + protected $position; protected $statusFlags = self::STATUS_VALID; /** diff --git a/tests/PHPUnit/OneOfConstraint.php b/tests/PHPUnit/OneOfConstraint.php index 7c30cdbd..79529d38 100644 --- a/tests/PHPUnit/OneOfConstraint.php +++ b/tests/PHPUnit/OneOfConstraint.php @@ -44,7 +44,7 @@ class OneOfConstraint extends Constraint } /** - * @param $other + * @param mixed $other * @return string */ protected function failureDescription($other): string diff --git a/tests/PHPUnit/PredisTestCase.php b/tests/PHPUnit/PredisTestCase.php index d334f59a..d67829e8 100644 --- a/tests/PHPUnit/PredisTestCase.php +++ b/tests/PHPUnit/PredisTestCase.php @@ -22,7 +22,7 @@ use Predis\Connection; */ abstract class PredisTestCase extends \PHPUnit\Framework\TestCase { - protected $redisServerVersion = null; + protected $redisServerVersion; protected $redisJsonVersion; /** @@ -73,7 +73,7 @@ abstract class PredisTestCase extends \PHPUnit\Framework\TestCase * * @return RedisCommandConstraint */ - public function isRedisCommand($command = null, ?array $arguments = null): RedisCommandConstraint + public function isRedisCommand($command = null, array $arguments = null): RedisCommandConstraint { return new RedisCommandConstraint($command, $arguments); } @@ -224,7 +224,7 @@ abstract class PredisTestCase extends \PHPUnit\Framework\TestCase * * @return Client */ - protected function createClient(?array $parameters = null, ?array $options = null, ?bool $flushdb = true): Client + protected function createClient(array $parameters = null, array $options = null, ?bool $flushdb = true): Client { $parameters = array_merge( $this->getDefaultParametersArray(), @@ -300,7 +300,6 @@ abstract class PredisTestCase extends \PHPUnit\Framework\TestCase * the default connection parameters used by Predis or a set of connection * parameters specified in the optional second argument. * - * @param array|string|null $parameters Optional connection parameters * * @return MockObject|Connection\NodeConnectionInterface @@ -362,9 +361,9 @@ abstract class PredisTestCase extends \PHPUnit\Framework\TestCase $this->getName(false) ); - if (isset($annotations['method']['requiresRedisVersion'], $annotations['method']['group']) && - !empty($annotations['method']['requiresRedisVersion']) && - in_array('connected', $annotations['method']['group']) + if (isset($annotations['method']['requiresRedisVersion'], $annotations['method']['group']) + && !empty($annotations['method']['requiresRedisVersion']) + && in_array('connected', $annotations['method']['group']) ) { return $annotations['method']['requiresRedisVersion'][0]; } @@ -517,9 +516,9 @@ abstract class PredisTestCase extends \PHPUnit\Framework\TestCase $this->getName(false) ); - if (isset($annotations['method'][$moduleAnnotation], $annotations['method']['group']) && - !empty($annotations['method'][$moduleAnnotation]) && - in_array('connected', $annotations['method']['group'], true) + if (isset($annotations['method'][$moduleAnnotation], $annotations['method']['group']) + && !empty($annotations['method'][$moduleAnnotation]) + && in_array('connected', $annotations['method']['group'], true) ) { return $annotations['method'][$moduleAnnotation][0]; } diff --git a/tests/PHPUnit/RedisCommandConstraint.php b/tests/PHPUnit/RedisCommandConstraint.php index 8cb77e18..d4e0b4ec 100644 --- a/tests/PHPUnit/RedisCommandConstraint.php +++ b/tests/PHPUnit/RedisCommandConstraint.php @@ -25,7 +25,7 @@ class RedisCommandConstraint extends \PHPUnit\Framework\Constraint\Constraint * @param string|CommandInterface $command Expected command instance or command ID * @param ?array $arguments Expected command arguments */ - public function __construct($command, ?array $arguments = null) + public function __construct($command, array $arguments = null) { if ($command instanceof CommandInterface) { $this->commandID = strtoupper($command->getId()); diff --git a/tests/Predis/Cluster/PredisStrategyTest.php b/tests/Predis/Cluster/PredisStrategyTest.php index 594c4ed3..fbf7922c 100644 --- a/tests/Predis/Cluster/PredisStrategyTest.php +++ b/tests/Predis/Cluster/PredisStrategyTest.php @@ -310,7 +310,7 @@ class PredisStrategyTest extends PredisTestCase * * @return array */ - protected function getExpectedCommands(?string $type = null): array + protected function getExpectedCommands(string $type = null): array { $commands = [ /* commands operating on the key space */ diff --git a/tests/Predis/Cluster/RedisStrategyTest.php b/tests/Predis/Cluster/RedisStrategyTest.php index d19eec85..dd570d53 100644 --- a/tests/Predis/Cluster/RedisStrategyTest.php +++ b/tests/Predis/Cluster/RedisStrategyTest.php @@ -333,7 +333,7 @@ class RedisStrategyTest extends PredisTestCase * * @return array */ - protected function getExpectedCommands(?string $type = null): array + protected function getExpectedCommands(string $type = null): array { $commands = [ /* commands operating on the key space */ diff --git a/tests/Predis/Command/Redis/Container/AbstractContainerTest.php b/tests/Predis/Command/Container/AbstractContainerTest.php similarity index 98% rename from tests/Predis/Command/Redis/Container/AbstractContainerTest.php rename to tests/Predis/Command/Container/AbstractContainerTest.php index 7a91307e..857f7502 100644 --- a/tests/Predis/Command/Redis/Container/AbstractContainerTest.php +++ b/tests/Predis/Command/Container/AbstractContainerTest.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container; +namespace Predis\Command\Container; use PHPUnit\Framework\TestCase; use Predis\ClientInterface; diff --git a/tests/Predis/Command/Redis/Container/ContainerFactoryTest.php b/tests/Predis/Command/Container/ContainerFactoryTest.php similarity index 93% rename from tests/Predis/Command/Redis/Container/ContainerFactoryTest.php rename to tests/Predis/Command/Container/ContainerFactoryTest.php index f98901e1..2aa13044 100644 --- a/tests/Predis/Command/Redis/Container/ContainerFactoryTest.php +++ b/tests/Predis/Command/Container/ContainerFactoryTest.php @@ -10,12 +10,12 @@ * file that was distributed with this source code. */ -namespace Predis\Command\Redis\Container; +namespace Predis\Command\Container; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Predis\ClientInterface; -use Predis\Command\Redis\Container\Search\FTCONFIG; +use Predis\Command\Container\Search\FTCONFIG; use UnexpectedValueException; class ContainerFactoryTest extends TestCase @@ -73,7 +73,7 @@ class ContainerFactoryTest extends TestCase public function containerProvider(): array { return [ - 'core command' => ['function', FunctionContainer::class], + 'core command' => ['function', FUNCTIONS::class], 'module command' => ['ftconfig', FTCONFIG::class], ]; } diff --git a/tests/Predis/Command/Redis/EVALSHA_RO_Test.php b/tests/Predis/Command/Redis/EVALSHA_RO_Test.php index 596e4c38..74ad40ce 100644 --- a/tests/Predis/Command/Redis/EVALSHA_RO_Test.php +++ b/tests/Predis/Command/Redis/EVALSHA_RO_Test.php @@ -61,10 +61,10 @@ class EVALSHA_RO_Test extends PredisCommandTestCase /** * @group connected * @dataProvider scriptsProvider - * @param string $script - * @param array $keys - * @param array $arguments - * @param $expectedResponse + * @param string $script + * @param array $keys + * @param array $arguments + * @param mixed $expectedResponse * @return void * @requiresRedisVersion >= 7.0.0 */ diff --git a/tests/Predis/Command/Redis/EVAL_RO_Test.php b/tests/Predis/Command/Redis/EVAL_RO_Test.php index 89c93d40..cdeb5b70 100644 --- a/tests/Predis/Command/Redis/EVAL_RO_Test.php +++ b/tests/Predis/Command/Redis/EVAL_RO_Test.php @@ -61,11 +61,11 @@ class EVAL_RO_Test extends PredisCommandTestCase /** * @group connected * @dataProvider scriptsProvider - * @param array $dictionary - * @param string $script - * @param array $keys - * @param array $arguments - * @param $expectedResponse + * @param array $dictionary + * @param string $script + * @param array $keys + * @param array $arguments + * @param mixed $expectedResponse * @return void * @requiresRedisVersion >= 7.0.0 */ diff --git a/tests/Predis/Command/Redis/EXPIREAT_Test.php b/tests/Predis/Command/Redis/EXPIREAT_Test.php index 44829683..cee43824 100644 --- a/tests/Predis/Command/Redis/EXPIREAT_Test.php +++ b/tests/Predis/Command/Redis/EXPIREAT_Test.php @@ -166,14 +166,14 @@ class EXPIREAT_Test extends PredisCommandTestCase ['noExpiry', time() + 10, 'XX'], ], 'only if new expiry is greater then current one' => [ - ['newExpiryLower', 'value', 'EXAT', time() + 1000], - ['newExpiryGreater', 'value', 'EXAT', time() + 10], + ['newExpiryLower', 'value', 'EX', 1000], + ['newExpiryGreater', 'value', 'EX', 10], ['newExpiryGreater', time() + 20, 'GT'], ['newExpiryLower', time() + 20, 'GT'], ], 'only if new expiry is lower then current one' => [ - ['newExpiryLower', 'value', 'EXAT', time() + 1000], - ['newExpiryGreater', 'value', 'EXAT', time() + 10], + ['newExpiryLower', 'value', 'EX', 1000], + ['newExpiryGreater', 'value', 'EX', 10], ['newExpiryLower', time() + 20, 'LT'], ['newExpiryGreater', time() + 20, 'LT'], ], diff --git a/tests/Predis/Command/Redis/FCALL_RO_Test.php b/tests/Predis/Command/Redis/FCALL_RO_Test.php index a90695f3..87a3d334 100644 --- a/tests/Predis/Command/Redis/FCALL_RO_Test.php +++ b/tests/Predis/Command/Redis/FCALL_RO_Test.php @@ -113,8 +113,8 @@ class FCALL_RO_Test extends PredisCommandTestCase ); if ( - isset($annotations['method']['group']) && - in_array('connected', $annotations['method']['group'], true) + isset($annotations['method']['group']) + && in_array('connected', $annotations['method']['group'], true) ) { $redis = $this->getClient(); $redis->function->delete(self::LIB_NAME); diff --git a/tests/Predis/Command/Redis/FCALL_Test.php b/tests/Predis/Command/Redis/FCALL_Test.php index 8729e6f1..4e4ab055 100644 --- a/tests/Predis/Command/Redis/FCALL_Test.php +++ b/tests/Predis/Command/Redis/FCALL_Test.php @@ -78,9 +78,9 @@ class FCALL_Test extends PredisCommandTestCase /** * @group connected * @dataProvider functionsProvider - * @param string $function - * @param array $functionArguments - * @param $expectedResponse + * @param string $function + * @param array $functionArguments + * @param mixed $expectedResponse * @return void * @requiresRedisVersion >= 7.0.0 */ diff --git a/tests/Predis/Command/Redis/Json/JSONMERGE_Test.php b/tests/Predis/Command/Redis/Json/JSONMERGE_Test.php new file mode 100644 index 00000000..b9cb7a74 --- /dev/null +++ b/tests/Predis/Command/Redis/Json/JSONMERGE_Test.php @@ -0,0 +1,103 @@ +getCommand(); + $command->setArguments($arguments); + + $this->assertSame($expected, $command->getArguments()); + } + + /** + * @group disconnected + */ + public function testParseResponse(): void + { + $this->assertSame(1, $this->getCommand()->parseResponse(1)); + } + + /** + * @dataProvider jsonProvider + * @group connected + * @param array $setArguments + * @param array $mergeArguments + * @param string $expectedResponse + * @return void + * @requiresRedisJsonVersion >= 2.6.0 + */ + public function testMergeCorrectlyMergeJsonValues( + array $setArguments, + array $mergeArguments, + string $expectedResponse + ): void { + $redis = $this->getClient(); + + $this->assertEquals('OK', $redis->jsonset(...$setArguments)); + $this->assertEquals('OK', $redis->jsonmerge(...$mergeArguments)); + $this->assertEquals($expectedResponse, $redis->jsonget('key')); + } + + public function jsonProvider(): array + { + return [ + 'create non-existing value' => [ + ['key', '$', '{"a":2}'], + ['key', '$.b', '8'], + '{"a":2,"b":8}', + ], + 'replace existing value' => [ + ['key', '$', '{"a":2}'], + ['key', '$.a', '3'], + '{"a":3}', + ], + 'replace an array' => [ + ['key', '$', '{"a":[2,4,6,8]}'], + ['key', '$.a', '[10,12]'], + '{"a":[10,12]}', + ], + 'merge in multiple-paths' => [ + ['key', '$', '{"f1": {"a":1}, "f2":{"a":2}}'], + ['key', '$', '{"f2":{"a":3, "b":4}, "f3":[2,4,6]}'], + '{"f1":{"a":1},"f2":{"a":3,"b":4},"f3":[2,4,6]}', + ], + ]; + } +} diff --git a/tests/Predis/Command/Redis/Json/JSONMSET_Test.php b/tests/Predis/Command/Redis/Json/JSONMSET_Test.php new file mode 100644 index 00000000..2083d39c --- /dev/null +++ b/tests/Predis/Command/Redis/Json/JSONMSET_Test.php @@ -0,0 +1,85 @@ +getCommand(); + $command->setArguments($arguments); + + $this->assertSame($expected, $command->getArguments()); + } + + /** + * @group disconnected + */ + public function testParseResponse(): void + { + $this->assertSame(1, $this->getCommand()->parseResponse(1)); + } + + /** + * @group connected + * @return void + * @requiresRedisJsonVersion >= 2.6.0 + */ + public function testSetMultipleJsonDocuments(): void + { + $redis = $this->getClient(); + + $this->assertEquals('OK', $redis->jsonmset('doc1', '$', '{"a":2}', 'doc2', '$', '{"b":3}')); + $this->assertEquals(['[{"a":2}]', '[{"b":3}]'], $redis->jsonmget(['doc1', 'doc2'], '$')); + } + + /** + * @group connected + * @return void + * @requiresRedisJsonVersion >= 2.6.0 + */ + public function testThrowsExceptionOnNewValuesNotInTheRootPath(): void + { + $redis = $this->getClient(); + + $this->expectException(ServerException::class); + $this->expectExceptionMessage('ERR new objects must be created at the root'); + + $redis->jsonmset('doc1', '$', '{"a":2}', 'doc2', '$.f', '{"b":3}'); + } +} diff --git a/tests/Predis/Command/Redis/LCS_Test.php b/tests/Predis/Command/Redis/LCS_Test.php index 839084a3..72cb5c6c 100644 --- a/tests/Predis/Command/Redis/LCS_Test.php +++ b/tests/Predis/Command/Redis/LCS_Test.php @@ -58,9 +58,9 @@ class LCS_Test extends PredisCommandTestCase /** * @group connected * @dataProvider stringsProvider - * @param array $stringsArguments - * @param array $functionArguments - * @param $expectedResponse + * @param array $stringsArguments + * @param array $functionArguments + * @param mixed $expectedResponse * @return void * @requiresRedisVersion >= 7.0.0 */ diff --git a/tests/Predis/Command/Redis/Search/FTSEARCH_Test.php b/tests/Predis/Command/Redis/Search/FTSEARCH_Test.php index 58254af5..dfca91d5 100644 --- a/tests/Predis/Command/Redis/Search/FTSEARCH_Test.php +++ b/tests/Predis/Command/Redis/Search/FTSEARCH_Test.php @@ -113,6 +113,9 @@ class FTSEARCH_Test extends PredisCommandTestCase $ftCreateResponse = $redis->ftcreate('idx_hash', $schema, $ftCreateArguments); $this->assertEquals('OK', $ftCreateResponse); + // Timeout to make sure that index created before search performed. + usleep(2000); + $ftSearchArguments = new SearchArguments(); $ftSearchArguments->addReturn(1, 'should_return'); diff --git a/tests/Predis/Command/Redis/ZINTERCARD_Test.php b/tests/Predis/Command/Redis/ZINTERCARD_Test.php index d307eff1..7923b4d8 100644 --- a/tests/Predis/Command/Redis/ZINTERCARD_Test.php +++ b/tests/Predis/Command/Redis/ZINTERCARD_Test.php @@ -110,8 +110,8 @@ class ZINTERCARD_Test extends PredisCommandTestCase /** * @group connected * @dataProvider unexpectedValuesProvider - * @param $keys - * @param $limit + * @param mixed $keys + * @param mixed $limit * @param string $expectedExceptionMessage * @return void * @requiresRedisVersion >= 7.0.0 diff --git a/tests/Predis/Command/Redis/ZINTERSTORE_Test.php b/tests/Predis/Command/Redis/ZINTERSTORE_Test.php index 3c7229a9..bad586c1 100644 --- a/tests/Predis/Command/Redis/ZINTERSTORE_Test.php +++ b/tests/Predis/Command/Redis/ZINTERSTORE_Test.php @@ -133,9 +133,9 @@ class ZINTERSTORE_Test extends PredisCommandTestCase /** * @dataProvider unexpectedValueProvider - * @param string $destination - * @param $keys - * @param $weights + * @param string $destination + * @param mixed $keys + * @param mixed $weights * @param string $aggregate * @param string $expectedExceptionMessage * @return void diff --git a/tests/Predis/Command/Redis/ZINTER_Test.php b/tests/Predis/Command/Redis/ZINTER_Test.php index 9390cd5a..22eaef5b 100644 --- a/tests/Predis/Command/Redis/ZINTER_Test.php +++ b/tests/Predis/Command/Redis/ZINTER_Test.php @@ -127,8 +127,8 @@ class ZINTER_Test extends PredisCommandTestCase /** * @dataProvider unexpectedValueProvider - * @param $keys - * @param $weights + * @param mixed $keys + * @param mixed $weights * @param string $aggregate * @param bool $withScores * @param string $expectedExceptionMessage diff --git a/tests/Predis/Command/Redis/ZRANGESTORE_Test.php b/tests/Predis/Command/Redis/ZRANGESTORE_Test.php index d60e4ad6..2989a3ed 100644 --- a/tests/Predis/Command/Redis/ZRANGESTORE_Test.php +++ b/tests/Predis/Command/Redis/ZRANGESTORE_Test.php @@ -102,14 +102,14 @@ class ZRANGESTORE_Test extends PredisCommandTestCase /** * @group connected * @dataProvider unexpectedValuesProvider - * @param int|string $min - * @param int|string $max - * @param string|bool $by - * @param $rev - * @param $limit - * @param int $offset - * @param int $count - * @param string $expectedExceptionMessage + * @param int|string $min + * @param int|string $max + * @param string|bool $by + * @param $rev + * @param $limit + * @param int $offset + * @param int $count + * @param string $expectedExceptionMessage * @return void * @requiresRedisVersion >= 6.2.0 */ diff --git a/tests/Predis/Command/Redis/ZUNIONSTORE_Test.php b/tests/Predis/Command/Redis/ZUNIONSTORE_Test.php index 3bc036a4..2d9e8532 100644 --- a/tests/Predis/Command/Redis/ZUNIONSTORE_Test.php +++ b/tests/Predis/Command/Redis/ZUNIONSTORE_Test.php @@ -133,9 +133,9 @@ class ZUNIONSTORE_Test extends PredisCommandTestCase /** * @dataProvider unexpectedValueProvider - * @param string $destination - * @param $keys - * @param $weights + * @param string $destination + * @param $keys + * @param $weights * @param string $aggregate * @param string $expectedExceptionMessage * @return void diff --git a/tests/Predis/Command/Redis/ZUNION_Test.php b/tests/Predis/Command/Redis/ZUNION_Test.php index 2e1d3ed4..0cd033c9 100644 --- a/tests/Predis/Command/Redis/ZUNION_Test.php +++ b/tests/Predis/Command/Redis/ZUNION_Test.php @@ -101,8 +101,8 @@ class ZUNION_Test extends PredisCommandTestCase /** * @dataProvider unexpectedValueProvider - * @param $keys - * @param $weights + * @param $keys + * @param $weights * @param string $aggregate * @param bool $withScores * @param string $expectedExceptionMessage diff --git a/tests/Predis/Replication/ReplicationStrategyTest.php b/tests/Predis/Replication/ReplicationStrategyTest.php index ca9ae4bd..128bbce4 100644 --- a/tests/Predis/Replication/ReplicationStrategyTest.php +++ b/tests/Predis/Replication/ReplicationStrategyTest.php @@ -390,7 +390,7 @@ class ReplicationStrategyTest extends PredisTestCase * * @return array */ - protected function getExpectedCommands(?string $type = null): array + protected function getExpectedCommands(string $type = null): array { $commands = [ /* commands operating on the connection */