PHP code example of olegkravec / expirable
1. Go to this page and download the library: Download olegkravec/expirable 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/ */
olegkravec / expirable example snippets
namespace App;
use OlegKravec\Expirable\Expirable;
use Illuminate\Database\Eloquent\Model;
class YourModel extends Model
{
use Expirable;
/**
* Your code here...
*/
}
class YourModel extends Model
{
use Expirable;
public $_expirable_ttl = 100;
public $_expirable_prefix = "MyModelPrefix";
public $_expirable_cache_hashing_enabled = true;
/**
* Your code here...
*/
}