Function Persistent_caching_filesystem->get
Definitions
sources/persistent_caching/filesystem.php
- Get data from the persistent cache.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $key | string | No | No | required parameter | N/A | N/A | Key |
| $min_cache_date | ?TIME | No | No | Null | N/A | N/A | Minimum timestamp that entries from the cache may hold (null: don't care) |
Returns
- The data (null: not found / null entry)
- Type: ?mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get data from the persistent cache.
*
* @param string $key Key
* @param ?TIME $min_cache_date Minimum timestamp that entries from the cache may hold (null: don't care)
* @return ?mixed The data (null: not found / null entry)
*/
public function get(string $key, ?int $min_cache_date = null)
* Get data from the persistent cache.
*
* @param string $key Key
* @param ?TIME $min_cache_date Minimum timestamp that entries from the cache may hold (null: don't care)
* @return ?mixed The data (null: not found / null entry)
*/
public function get(string $key, ?int $min_cache_date = null)

