-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from boesing/refactor/redis-resource-manager
`RedisResourceManager` refactoring
- Loading branch information
Showing
45 changed files
with
1,332 additions
and
1,828 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
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.