PHP code example of sormagec / laravel-mongo-cacheable
1. Go to this page and download the library: Download sormagec/laravel-mongo-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/ */
sormagec / laravel-mongo-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;