| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class UpdateLaraCacheModelsList implements ShouldQueue |
||
| 13 | { |
||
| 14 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
|
|
|||
| 15 | |||
| 16 | private string $driver; |
||
| 17 | private string $key; |
||
| 18 | |||
| 19 | public const LARACACHE_MODELS_LIST = 'laracache.models'; |
||
| 20 | |||
| 21 | public function __construct(private string $model) |
||
| 22 | { |
||
| 23 | $this->driver = config('laracache.driver') ?: config('cache.default'); |
||
| 24 | $this->key = self::LARACACHE_MODELS_LIST; |
||
| 25 | } |
||
| 26 | |||
| 27 | |||
| 28 | public function handle(): void |
||
| 36 | ); |
||
| 37 | } |
||
| 39 |