Skip to content

Commit

Permalink
Fixed broken CI with RedisCluser on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Dec 16, 2023
1 parent 18b98f5 commit 038ee38
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/DRIVERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* A very high-performance NoSQL driver using a key-value pair system.
* Predis
* A high-performance memory driver using a in-memory data structure storage. Less efficient than Redis driver as it is an embedded library.
* Redis/RedisCluster
* Redis/Rediscluster
* A very high-performance memory driver using a in-memory data structure storage. More efficient than Predis driver as it is an compiled library.
* RedisCluster use the RedisCluster class with a different driver name but behave slightly differently than Redis driver.
* Riak **(REMOVED in v8.0.6)**
Expand Down
10 changes: 3 additions & 7 deletions lib/Phpfastcache/Core/Pool/ExtendedCacheItemPoolInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@
use Psr\Cache\CacheItemPoolInterface;

/**
* IMPORTANT NOTICE
*
* If you modify this file please make sure that
* the ActOnAll helper will also get those modifications
* since it does no longer implements this interface
* @see \Phpfastcache\Helper\ActOnAll
*
* Extended cache item pool interface that
* contains all the phpfastcache-related
* methods that does not belong to PSR-6.
*/
interface ExtendedCacheItemPoolInterface extends CacheItemPoolInterface, EventManagerDispatcherInterface, ClassNamespaceResolverInterface, TaggableCacheItemPoolInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

declare(strict_types=1);

namespace Phpfastcache\Drivers\RedisCluster;
namespace Phpfastcache\Drivers\Rediscluster;

use Phpfastcache\Config\ConfigurationOption;
use Phpfastcache\Exceptions\PhpfastcacheInvalidArgumentException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

declare(strict_types=1);

namespace Phpfastcache\Drivers\RedisCluster;
namespace Phpfastcache\Drivers\Rediscluster;

use DateTime;
use Phpfastcache\Cluster\AggregatablePoolInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

declare(strict_types=1);

namespace Phpfastcache\Drivers\RedisCluster;
namespace Phpfastcache\Drivers\Rediscluster;

use Phpfastcache\Core\Item\ExtendedCacheItemInterface;
use Phpfastcache\Core\Item\TaggableCacheItemTrait;
Expand Down
4 changes: 2 additions & 2 deletions tests/RedisCluster.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
use Phpfastcache\CacheManager;
use Phpfastcache\Exceptions\PhpfastcacheDriverCheckException;
use Phpfastcache\Tests\Helper\TestHelper;
use Phpfastcache\Drivers\RedisCluster\Config as RedisConfig;
use Phpfastcache\Drivers\Rediscluster\Config as RedisConfig;
use Redis as RedisClient;

chdir(__DIR__);
require_once __DIR__ . '/../vendor/autoload.php';
$testHelper = new TestHelper('Redis bundled client');
$testHelper = new TestHelper('Redis cluster');

try {
$config = new RedisConfig();
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Config/ConfigFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

use Phpfastcache\Config\ConfigurationOptionInterface;
use Phpfastcache\Drivers\Mongodb\Config as MongodbConfig;
use Phpfastcache\Drivers\RedisCluster\Config as RedisClusterConfig;
use Phpfastcache\Drivers\Rediscluster\Config as RedisClusterConfig;
use Phpfastcache\Helper\UninstanciableObjectTrait;

class ConfigFactory
Expand Down

0 comments on commit 038ee38

Please sign in to comment.