PHP code example of limingxinleo / swoft-entity-cache
1. Go to this page and download the library: Download limingxinleo/swoft-entity-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/ */
limingxinleo / swoft-entity-cache example snippets
/**
* Swoft Entity Cache
*
* @author limx <[email protected]>
* @link https://github.com/limingxinleo/swoft-entity-cache
*/
namespace App\Models;
use Swoft\Db\Model;
use Swoftx\Db\Entity\ModelCacheable;
class ModelCache extends Model
{
use ModelCacheable;