Compare commits

..

3 Commits

Author SHA1 Message Date
vladvildanov a5bb1b362e Updated CHANGELOG.md 2026-06-05 14:23:58 +03:00
vladvildanov 79ec4e3a6d Merge branch 'main' of github.com:predis/predis into vv-update-runners 2026-06-05 14:19:12 +03:00
vladvildanov e9b598c540 Update GH runners based on NodeJS <= 20 2026-06-05 14:15:12 +03:00
8 changed files with 12 additions and 41 deletions
+5 -5
View File
@@ -81,13 +81,13 @@ jobs:
uses: actions/checkout@v6
- name: Start Redis standalone image
uses: hoverkraft-tech/compose-action@v2.6.0
uses: hoverkraft-tech/compose-action@v3.0.0
with:
compose-file: .github/docker-compose.yml
services: ${{ env.DOCKER_SERVICE }}
- name: Start Redis unprotected image
uses: hoverkraft-tech/compose-action@v2.6.0
uses: hoverkraft-tech/compose-action@v3.0.0
if: ${{ matrix.redis > '4.0' }}
with:
compose-file: .github/docker-compose.yml
@@ -95,7 +95,7 @@ jobs:
- name: Start Redis stack image
id: stack_infra
uses: hoverkraft-tech/compose-action@v2.6.0
uses: hoverkraft-tech/compose-action@v3.0.0
if: ${{ matrix.redis >= '7.2' && matrix.redis < '8.0' }}
with:
compose-file: .github/docker-compose.yml
@@ -103,7 +103,7 @@ jobs:
- name: Start Redis cluster image
id: cluster_infra
uses: hoverkraft-tech/compose-action@v2.6.0
uses: hoverkraft-tech/compose-action@v3.0.0
if: ${{ matrix.redis > '4.0' }}
with:
compose-file: .github/docker-compose.yml
@@ -111,7 +111,7 @@ jobs:
- name: Start Redis sentinels image
id: sentinel_infra
uses: hoverkraft-tech/compose-action@v2.6.0
uses: hoverkraft-tech/compose-action@v3.0.0
if: ${{ matrix.redis > '4.0' }}
with:
compose-file: .github/docker-compose.yml
+3 -6
View File
@@ -1,11 +1,8 @@
## Changelog
### Unreleased
## v3.5.1 (2026-06-11)
### Added
- Expose `pipeline()` API via `ClientInterface` (#1686)
### Fixed
- Allow `UNLINK` to accept an array of keys (#1687)
### Changed
- Update GH runners based on NodeJS <= 20 (#1684)
## v3.5.0 (2026-06-02)
### Added
+1 -1
View File
@@ -1 +1 @@
3.5.1
3.5.0
+1 -1
View File
@@ -56,7 +56,7 @@ use Traversable;
*/
class Client implements ClientInterface, IteratorAggregate
{
public const VERSION = '3.5.1';
public const VERSION = '3.5.0';
/** @var OptionsInterface */
private $options;
+1 -1
View File
@@ -77,7 +77,7 @@ use Predis\Command\Redis\VADD;
* @method $this sort_ro(string $key, ?string $byPattern = null, ?LimitOffsetCount $limit = null, array $getPatterns = [], ?string $sorting = null, bool $alpha = false)
* @method $this ttl($key)
* @method $this type($key)
* @method $this unlink(string[]|string $keyOrKeys, string ...$keys = null)
* @method $this unlink(string ...$keys)
* @method $this append($key, $value)
* @method $this arcount(string $key)
* @method $this ardel(string $key, int ...$index)
+1 -3
View File
@@ -53,7 +53,6 @@ use Predis\Command\Redis\HSETEX;
use Predis\Command\Redis\VADD;
use Predis\Configuration\OptionsInterface;
use Predis\Connection\ConnectionInterface;
use Predis\Pipeline\Pipeline;
use Predis\Response\Status;
/**
@@ -88,7 +87,7 @@ use Predis\Response\Status;
* @method array sort_ro(string $key, ?string $byPattern = null, ?LimitOffsetCount $limit = null, array $getPatterns = [], ?string $sorting = null, bool $alpha = false)
* @method int ttl(string $key)
* @method mixed type(string $key)
* @method int unlink(string[]|string $keyOrKeys, string ...$keys = null)
* @method int unlink(string ...$keys)
* @method int append(string $key, $value)
* @method int arcount(string $key)
* @method int ardel(string $key, int ...$index)
@@ -382,7 +381,6 @@ use Predis\Response\Status;
* @method mixed discard()
* @method array|null exec()
* @method mixed multi()
* @method Pipeline|array pipeline(mixed ...$arguments)
* @method mixed unwatch()
* @method array unsubscribe(string ...$channels)
* @method bool vadd(string $key, string|array $vector, string $elem, int $dim = null, bool $cas = false, string $quant = VADD::QUANT_DEFAULT, int $bef = null, string|array $attributes = null, int $numlinks = null)
-10
View File
@@ -27,16 +27,6 @@ class UNLINK extends RedisCommand
return 'UNLINK';
}
/**
* {@inheritdoc}
*/
public function setArguments(array $arguments)
{
$arguments = self::normalizeArguments($arguments);
parent::setArguments($arguments);
}
public function prefixKeys($prefix)
{
$this->applyPrefixForAllArguments($prefix);
@@ -49,20 +49,6 @@ class UNLINK_Test extends PredisCommandTestCase
$this->assertSame($expected, $command->getArguments());
}
/**
* @group disconnected
*/
public function testFilterArgumentsAsSingleArray(): void
{
$arguments = [['key1', 'key2', 'key3']];
$expected = ['key1', 'key2', 'key3'];
$command = $this->getCommand();
$command->setArguments($arguments);
$this->assertSame($expected, $command->getArguments());
}
/**
* @group disconnected
*/