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
+4 -1
View File
@@ -4,13 +4,14 @@ namespace App\Providers;
use App\Http\Helpers\Helper;
use App\Http\Services\SignRSA;
use App\Services\Cache\CacheService;
use App\Services\Cache\CacheServiceInterface;
use App\Models\ModuleVmware;
use App\Models\ModuleIpAddress;
use App\Observers\ModuleVmwareObserver;
use App\Observers\ModuleIpAddressObserver;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@@ -22,6 +23,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->singleton(CacheServiceInterface::class, CacheService::class);
$this->app->bind('signrsa', function () {
return new SignRSA();
});