2017-12-21 09:12:39 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
|
|
|
use App\Models\Navdata;
|
2018-02-02 06:46:37 +08:00
|
|
|
use \Prettus\Repository\Traits\CacheableRepository;
|
2017-12-21 09:12:39 +08:00
|
|
|
use Prettus\Repository\Contracts\CacheableInterface;
|
|
|
|
|
|
|
|
class NavdataRepository extends BaseRepository implements CacheableInterface
|
|
|
|
{
|
|
|
|
use CacheableRepository;
|
|
|
|
|
|
|
|
// Super short lived cache for when the navdata stuff is re-imported
|
|
|
|
protected $cacheMinutes = 5;
|
|
|
|
|
|
|
|
public function model()
|
|
|
|
{
|
|
|
|
return Navdata::class;
|
|
|
|
}
|
|
|
|
}
|