PHP code example of rinvex / laravel-cacheable
1. Go to this page and download the library: Download rinvex/laravel-cacheable 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/ */
rinvex / laravel-cacheable example snippets
/**
* Indicate if the model cache clear is enabled.
*
* @var bool
*/
protected $cacheClearEnabled = true;
/**
* The model cache driver.
*
* @var string
*/
protected $cacheDriver = 'memcached';
/**
* The model cache lifetime.
*
* @var int
*/
protected $cacheLifetime = -1;