Function Self_learning_cache->get

Definitions

sources/caches.php

  • Get a cache key.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$key ID_TEXT No No required parameter N/A N/A Cache key

Returns

  • The value (null: not in cache - needs to be learnt)
  • Type: ?mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a cache key.
 *
 * @param  ID_TEXT $key Cache key
 * @return ?mixed The value (null: not in cache - needs to be learnt)
 */

public function get(string $key)