Function cache_put_data
Puts value in the cache under key for ttl seconds.
- It may "miss" so shouldn't be depended on
- Uses the cache engine chosen in the ACP and saved in settings.php
- It supports: Xcache: https://xcache.lighttpd.net/wiki/XcacheApi memcache: https://php.net/memcache APC: https://php.net/apc APCu: https://php.net/book.apcu Zend: http://files.zend.com/help/Zend-Platform/output_cache_functions.htm Zend: http://files.zend.com/help/Zend-Platform/zend_cache_functions.htm
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 |
A key for this value |
mixed |
$value |
The data to cache |
integer |
$ttl = 120 |
How long (in seconds) the data should be cached for |