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
@@ -126,7 +126,7 @@ class UpdateVMInfoJob implements ShouldQueue
];
// Cache the result for 5 minutes
$cacheKey = "vm_info_{$this->vmId}";
$cacheKey = \App\Support\Cache\CacheKey::build('vm', 'info', ['id' => $this->vmId]);
Cache::put($cacheKey, $vmInfo, 300);
Log::info('VM info updated successfully', ['vm_id' => $this->vmId]);