I save the query cache by the paging parameters and field conditions.
e.g. cache key :$"{entityName}-{pageIndex}-{pageSize}-{filters}" : "Customers-1-30-"
I need to clean these cache items when I update customers data.
so, I want call cache.Remove("Customers-*") or any other solutions?
I saw that "Method 2 - Cancellation Tokens (could also be used to dispose a range of items)", but I use MediatR CQRS pattern in my project, how to use CancellationTokenSource
I save the query cache by the paging parameters and field conditions. e.g. cache key :$"{entityName}-{pageIndex}-{pageSize}-{filters}" : "Customers-1-30-" I need to clean these cache items when I update customers data. so, I want call cache.Remove("Customers-*") or any other solutions?
I saw that "Method 2 - Cancellation Tokens (could also be used to dispose a range of items)", but I use MediatR CQRS pattern in my project, how to use CancellationTokenSource