1. Go to this page and download the library: Download kminek/cache library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// set your custom configuration options (below are default ones)
Kminek_Cache::configure(array(
'engine' => Kminek_Cache::ENGINE_SERIALIZE, // or Kminek_Cache::ENGINE_JSON or Kminek_Cache::ENGINE_VAR_EXPORT
'dir' => sys_get_temp_dir(), // where to store cache files
'prefix' => 'kminek_cache',
'separator' => '_',
'extension' => '.cache',
'ttl' => 60 * 60, // default ttl in seconds (1 hour)
));
// then use cache as you would normally do
$cachedData = cache_get('cachedData');
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.