PHPSocialNetwork/phpfastcache

View on GitHub
lib/Phpfastcache/Config/LockableConfigurationInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 *
 * This file is part of Phpfastcache.
 *
 * @license MIT License (MIT)
 *
 * For full copyright and license information, please see the docs/CREDITS.txt and LICENCE files.
 *
 * @author Georges.L (Geolim4)  <contact@geolim4.com>
 * @author Contributors  https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
 */

declare(strict_types=1);

namespace Phpfastcache\Config;

use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;

interface LockableConfigurationInterface
{
    /**
     * @internal
     */
    public function lock(ExtendedCacheItemPoolInterface $poolInstance): static;

    public function lockedBy(): ExtendedCacheItemPoolInterface;

    public function isLocked(): bool;
}