to squeeze
This commit is contained in:
35
laravel/app/Models/Cache.php
Executable file
35
laravel/app/Models/Cache.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class Cache
|
||||
*
|
||||
* @property string $key
|
||||
* @property string $value
|
||||
* @property int $expiration
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class Cache extends Model
|
||||
{
|
||||
protected $table = 'cache';
|
||||
protected $primaryKey = 'key';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'expiration' => 'int'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'value',
|
||||
'expiration'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user