Function __global->persistent_cache_get

Definitions

sources/caches.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 mixed 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  mixed $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)
 */

function persistent_cache_get($key, ?int $min_cache_date = null)
 

sources/minikernel.php

  • Get data from the persistent cache.(In minikernel, this always returns false).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$key mixed 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.(In minikernel, this always returns false).
 *
 * @param  mixed $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)
 */

function persistent_cache_get($key, ?int $min_cache_date = null)