Function cache_get_data
Gets the value from the cache specified by key, so long as it is not older than ttl seconds. - It may often "miss", so shouldn't be depended on. - It supports the same as cache_put_data().
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Load.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Load.php
string |
$key |
The key for the value to retrieve |
integer |
$ttl = 120 |
The maximum age of the cached data |
string|null
|
The cached data or null if nothing was loaded |