Skip to content

Commit

Permalink
fix(cache): made caching keys Command/Query name and metadata argumen…
Browse files Browse the repository at this point in the history
…ts dependant
  • Loading branch information
mezdelex committed Jul 31, 2024
1 parent a0e13cc commit 587d697
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CancellationToken cancellationToken
.ToPagedListAsync(request.Page, request.PageSize, cancellationToken);

await _redisCache.SetCachedData<PagedList<CategoryDTO>>(
nameof(GetAllCategoriesQuery),
$"{nameof(GetAllCategoriesQuery)}#{request.Page}#{request.PageSize}",
pagedCategories,
DateTimeOffset.Now.AddMinutes(5)
);
Expand Down

0 comments on commit 587d697

Please sign in to comment.