Function Self_learning_cache->append
Definitions
sources/caches.php
- Add something to a list entry in the cache. Uses keys to set the value, then assigns $value_2 to the key.This is efficient for duplication prevention.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$key | ID_TEXT | required parameter | N/A | N/A | Cache key |
$value | mixed | required parameter | N/A | N/A | Value to append (must not be an object or array, so you may need to pre-serialize) |
$value_2 | mixed | True | N/A | N/A | Secondary value to attach to appended value (optional) |
Return
- Whether the value was appended (false if it was already there)
- Type: boolean
- Set: N/A
- Range: N/A