refactor: implement centralized cache key management and add utility traits for vCenter SSH operations.
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user