BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
app.imagivibe.com
/
app
/
Models
/
Concerns
📤 Upload
📝 New File
📁 New Folder
Close
Editing: HasCache.php
<?php namespace App\Models\Concerns; use Closure; use Illuminate\Support\Facades\Cache; trait HasCache { public static function getCache(Closure $function, string $suffix = '') { return Cache::remember(self::$cacheKey . $suffix, self::$cacheTtl, $function); } public static function forgetCache(): void { Cache::forget(self::$cacheKey); } }
Save
Cancel