jikan-rest/app/Concerns/ScraperCacheTtl.php
2023-05-21 11:14:35 +01:00

14 lines
197 B
PHP

<?php
namespace App\Concerns;
use Illuminate\Support\Env;
trait ScraperCacheTtl
{
public static function cacheTtl(): int
{
return (int) Env::get('CACHE_DEFAULT_EXPIRE');
}
}