-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `RedisResourceManager` is now adapted to work the same way as `RedisClusterResourceManager` while this also removes a bunch of methods which are not meant to be part of the resource manager. - `Redis` adapter now allows `RedisResourceManagerInterface` to be set via `Redis#setResourceManager` - `RedisClusterResourceManagerInterface#hasSerializationSupport` now requires both `StorageInterface` and `PluginCapableInterface` - `RedisCluster#setResourceManager` is not marked as internal anymore - `RedisClusterResourceManagerInterface#getVersion` - `RedisClusterResourceManagerInterface#getLibOption` Signed-off-by: Maximilian Bösing <[email protected]>
- Loading branch information
Showing
44 changed files
with
1,298 additions
and
1,816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
/test/ export-ignore | ||
/benchmark/ export-ignore | ||
/phpbench.json export-ignore | ||
/psalm export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
benchmark/RedisWithIgbinarySerializerStorageAdapterBench.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace LaminasBench\Cache; | ||
|
||
use Laminas\Cache\Storage\Adapter\Benchmark\AbstractStorageAdapterBenchmark; | ||
use Laminas\Cache\Storage\Adapter\RedisOptions; | ||
use LaminasTest\Cache\Storage\Adapter\Laminas\RedisStorageCreationTrait; | ||
use PhpBench\Attributes\Iterations; | ||
use PhpBench\Attributes\Revs; | ||
use PhpBench\Attributes\Warmup; | ||
use Redis; | ||
|
||
/** | ||
* @template-extends AbstractStorageAdapterBenchmark<RedisOptions> | ||
*/ | ||
#[Revs(100)] | ||
#[Iterations(10)] | ||
#[Warmup(1)] | ||
class RedisWithIgbinarySerializerStorageAdapterBench extends AbstractStorageAdapterBenchmark | ||
{ | ||
use RedisStorageCreationTrait; | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct($this->createRedisStorage(Redis::SERIALIZER_IGBINARY, false)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace LaminasBench\Cache; | ||
|
||
use Laminas\Cache\Storage\Adapter\Benchmark\AbstractStorageAdapterBenchmark; | ||
use Laminas\Cache\Storage\Adapter\RedisOptions; | ||
use LaminasTest\Cache\Storage\Adapter\Laminas\RedisStorageCreationTrait; | ||
use PhpBench\Attributes\Iterations; | ||
use PhpBench\Attributes\Revs; | ||
use PhpBench\Attributes\Warmup; | ||
use Redis; | ||
|
||
/** | ||
* @template-extends AbstractStorageAdapterBenchmark<RedisOptions> | ||
*/ | ||
#[Revs(100)] | ||
#[Iterations(10)] | ||
#[Warmup(1)] | ||
class RedisWithPhpSerializerStorageAdapterBench extends AbstractStorageAdapterBenchmark | ||
{ | ||
use RedisStorageCreationTrait; | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct($this->createRedisStorage(Redis::SERIALIZER_PHP, false)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.