38 lines
749 B
PHP
38 lines
749 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Whois;
|
|
|
|
interface WhoisRepositoryInterface
|
|
{
|
|
/**
|
|
* Get domain information from cache
|
|
*
|
|
* @param string $domain
|
|
* @return array|null
|
|
*/
|
|
public function getDomainInfo(string $domain): ?array;
|
|
|
|
/**
|
|
* Cache domain information
|
|
*
|
|
* @param string $domain
|
|
* @param array $data
|
|
* @return bool
|
|
*/
|
|
public function cacheDomainInfo(string $domain, array $data): bool;
|
|
|
|
/**
|
|
* Clear domain cache
|
|
*
|
|
* @param string $domain
|
|
* @return bool
|
|
*/
|
|
public function clearDomainCache(string $domain): bool;
|
|
|
|
/**
|
|
* Clear all whois cache
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function clearAllCache(): bool;
|
|
}
|