|
@@ -9,6 +9,7 @@ use Illuminate\Support\Facades\Cache;
|
|
|
class CacheService
|
|
class CacheService
|
|
|
{
|
|
{
|
|
|
function getOrExecute(String $key, $func, $expiration=null){
|
|
function getOrExecute(String $key, $func, $expiration=null){
|
|
|
|
|
+ if(!$expiration) $expiration=config('cache.expirations.default');
|
|
|
return Cache::remember($key, $expiration, $func);
|
|
return Cache::remember($key, $expiration, $func);
|
|
|
// $results = Cache::get($key);
|
|
// $results = Cache::get($key);
|
|
|
// if(!$results){
|
|
// if(!$results){
|