feat: Add caching to streamer data retrieval

- Added caching mechanism to store and retrieve streamer data for API responses, improving performance.
- Implemented cache forget method in StreamerPanelController for CRUD operations to update cached data accordingly.
This commit is contained in:
Rico van Zelst
2024-03-26 10:30:09 +01:00
parent 39e9acf85b
commit 7ccd8ba022
3 changed files with 23 additions and 10 deletions

View File

@@ -1,12 +1,5 @@
<?php
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
use App\Http\Controllers\StreamerController;
Route::get('/streamers', [StreamerController::class, 'all']);