Function Self_learning_cache->set

Definitions

sources/caches.php

  • Set 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
$value mixed No No required parameter N/A N/A Value. Should not be null, as that is reserved for "not in cache"

Preview

Code (PHP)

/**
 * Set a cache key.
 *
 * @param  ID_TEXT $key Cache key
 * @param  mixed $value Value. Should not be null, as that is reserved for "not in cache"
 */

public function set(string $key, $value)