PHP code example of kodus / db-cache
1. Go to this page and download the library: Download kodus/db-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/ */
kodus / db-cache example snippets
$pdo = new PDO("pgsql:host=localhost;port=5432;dbname=test", "root", "root");
$cache = new DatabaseCache($pdo, "my_cache_table", 24*60*60);