refactor: implement centralized cache key management and add utility traits for vCenter SSH operations.

This commit is contained in:
pbao9
2026-05-16 16:52:21 +07:00
parent 06dbd54ecd
commit 8a115c5175
36 changed files with 1694 additions and 517 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ namespace App\Providers;
use App\Http\Facade\SignRSA;
use App\Models\Setting;
use App\Support\Cache\CacheKey;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config;
@@ -23,7 +24,7 @@ class MailConfigServiceProvider extends ServiceProvider
return;
}
$config = Cache::remember('mail_config', 3600, function () {
$config = Cache::remember(CacheKey::build('settings', 'mail'), 3600, function () {
if (!Schema::hasTable('setting')) {
return null;
}