PHP code example of snakano / propel-data-cache-behavior
1. Go to this page and download the library: Download snakano/propel-data-cache-behavior 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/ */
snakano / propel-data-cache-behavior example snippets
$title = 'War And Peace';
BookQuery::create()
->filterByTitle($title)
->findOne(); // from Database
BookQuery::create()
->filterByTitle($title)
->findOne(); // from caching system