PHP code example of se7enxweb / sevenx_valkey_cache
1. Go to this page and download the library: Download se7enxweb/sevenx_valkey_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/ */
se7enxweb / sevenx_valkey_cache example snippets
$cache = sevenxValkeyCacheBlock::instance();
$cache->put( 'my-key', $content, 3600 );
$content = $cache->get( 'my-key' );
$cache->purge( 'my-key' );
$cache->flush();
bash
php bin/php/ezpgenerateautoloads.php
bash
php bin/php/ezcache.php --clear-all --allow-root-user