diff --git a/src/Application/Categories/GetAllAsync/GetAllCategoriesQueryHandler.cs b/src/Application/Categories/GetAllAsync/GetAllCategoriesQueryHandler.cs index d348677..dae15f2 100644 --- a/src/Application/Categories/GetAllAsync/GetAllCategoriesQueryHandler.cs +++ b/src/Application/Categories/GetAllAsync/GetAllCategoriesQueryHandler.cs @@ -37,7 +37,7 @@ CancellationToken cancellationToken .ToPagedListAsync(request.Page, request.PageSize, cancellationToken); await _redisCache.SetCachedData>( - nameof(GetAllCategoriesQuery), + $"{nameof(GetAllCategoriesQuery)}#{request.Page}#{request.PageSize}", pagedCategories, DateTimeOffset.Now.AddMinutes(5) );