topLevelDomainListPsr16Cache
in package
implements
topLevelDomainListCacheInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- $cache : CacheInterface
- $cachePrefix : string
- $cacheTtl : DateInterval|null
- __construct() : mixed
- fetch() : topInterfaceLevelDomainListInterface|null
- forget() : bool
- remember() : bool
- cacheKey() : string
Properties
$cache
private
CacheInterface
$cache
$cachePrefix
private
string
$cachePrefix
$cacheTtl
private
DateInterval|null
$cacheTtl
Methods
__construct()
public
__construct(CacheInterface $cache[, string $cachePrefix = '' ][, mixed $cacheTtl = null ]) : mixed
Parameters
- $cache : CacheInterface
- $cachePrefix : string = ''
- $cacheTtl : mixed = null
Return values
mixed —fetch()
public
fetch(string $uri) : topInterfaceLevelDomainListInterface|null
Parameters
- $uri : string
Tags
Return values
topInterfaceLevelDomainListInterface|null —forget()
public
forget(string $uri) : bool
Parameters
- $uri : string
Tags
Return values
bool —remember()
public
remember(string $uri, topInterfaceLevelDomainListInterface $topLevelDomainList) : bool
Parameters
- $uri : string
- $topLevelDomainList : topInterfaceLevelDomainListInterface
Tags
Return values
bool —cacheKey()
private
cacheKey(string $str) : string
Parameters
- $str : string