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