<?php
declare(strict_types=1);

namespace Ekesto\CacheInvalidator\Integrations\Caching;

/**
 * Optional capability for adapters that can purge by URL directly.
 */
interface UrlPurgeCapableAdapterInterface
{
    /**
     * Purges cache for a specific absolute URL.
     *
     * @param string $url Absolute URL.
     * @return bool True when purge call was executed.
     */
    public function purgeUrl(string $url): bool;
}
