Classes | |
class | AbstractFormat |
class | DefaultFormatter |
class | DownloadFormat |
class | GenericFormat |
class | HierarchicalFormat |
class | HtmlFormat |
class | JsonFormat |
class | NullFormat |
class | SoapFormat |
Functions | |
isCached (Response $response) | |
getCacheDate (Response $response) | |
getBaseCacheSection () | |
getCacheSection (Response $response) | |
isCaching (Response $response) | |
putInCache (Response $response, $payload) | |
getFromCache (Response $response) | |
Variables | |
trait | CacheTrait |
Function Documentation
◆ isCached()
wcmf\lib\presentation\format\impl\isCached | ( | Response | $response | ) |
- See also
- Format::isCached()
Definition at line 32 of file CacheTrait.php.
◆ getCacheDate()
wcmf\lib\presentation\format\impl\getCacheDate | ( | Response | $response | ) |
- See also
- Format::getCacheDate()
Definition at line 40 of file CacheTrait.php.
◆ getBaseCacheSection()
|
protected |
Get the cache base section for the concreate format.
- Note
- Sublcasses override this to define custom base cache sections
- Returns
- String
Definition at line 50 of file CacheTrait.php.
◆ getCacheSection()
|
protected |
Get the cache section for a response.
- Parameters
-
Response $response
- Returns
- String
Definition at line 59 of file CacheTrait.php.
◆ isCaching()
|
protected |
Check if the response should be cached.
- Parameters
-
$response Boolean
Definition at line 69 of file CacheTrait.php.
◆ putInCache()
|
protected |
Store the payload of the response in the cache.
- Parameters
-
$response $payload String
Definition at line 78 of file CacheTrait.php.
◆ getFromCache()
|
protected |
Load the payload of the response from the cache.
- Parameters
-
$response
- Returns
- String
Definition at line 87 of file CacheTrait.php.
Variable Documentation
◆ CacheTrait
trait CacheTrait |
Initial value:
{
protected abstract function getCache()
CacheTrait adds support for cached responses.
Definition at line 21 of file CacheTrait.php.