for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* This file is part of Phpfastcache.
* @license MIT License (MIT)
* For full copyright and license information, please see the docs/CREDITS.txt file.
* @author Georges.L (Geolim4) <[email protected]>
*/
declare(strict_types=1);
namespace Phpfastcache\Cluster;
use Phpfastcache\Core\Item\ExtendedCacheItemInterface;
use Psr\Cache\CacheItemInterface;
trait ClusterPoolTrait
{
protected function driverCheck(): bool
return true;
}
protected function driverConnect(): bool
* @param ExtendedCacheItemInterface $item
* @return ?array<string, mixed>
protected function driverRead(ExtendedCacheItemInterface $item): ?array
return null;
* @return bool
protected function driverWrite(ExtendedCacheItemInterface $item): bool
* @param string $key
* @param string $encodedKey
protected function driverDelete(string $key, string $encodedKey): bool
protected function driverClear(): bool