Version 5.0.0 beta 1
This commit is contained in:
1 parent
25ddeb65d6
commit
15c7beabc5
6736 files changed
+627902
-497943
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pdp\Storage;
|
||||
|
||||
use Pdp\TopLevelDomainList;
|
||||
|
||||
interface TopLevelDomainListCache
|
||||
{
|
||||
/**
|
||||
* Retrieves the Top Level Domain List from the Cache.
|
||||
*/
|
||||
public function fetch(string $uri): ?TopLevelDomainList;
|
||||
|
||||
/**
|
||||
* Cache the Top Level Domain List.
|
||||
*
|
||||
* If a local cache already exists, it will be overwritten.
|
||||
*
|
||||
* Returns true if the action was successful, false otherwise
|
||||
*/
|
||||
public function remember(string $uri, TopLevelDomainList $topLevelDomainList): bool;
|
||||
|
||||
/**
|
||||
* Deletes the Top Level Domain List entry.
|
||||
*
|
||||
* Returns true if the action was successful, false otherwise
|
||||
*/
|
||||
public function forget(string $uri): bool;
|
||||
}
|
||||
Reference in new issue
Block a user