SqlServer Distributed cache: Allow application to handle DuplicateKeyException
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Is your feature request related to a problem? Please describe the problem.
I want application to handle [ SqlException(Duplicate key) ](https://github.com/dotnet/aspnetcore/blob/c7415ff0ea8999233c6b3272f6edaf772de910ed/src/Caching/SqlServer/src/DatabaseOperations.cs#L156) because based on that I want to drive application logic.
### Describe the solution you'd like
Do not suppress[ SqlException(Duplicate key) ](https://github.com/dotnet/aspnetcore/blob/c7415ff0ea8999233c6b3272f6edaf772de910ed/src/Caching/SqlServer/src/DatabaseOperations.cs#L156)
or provide at least an option to opt in based on SqlServerCacheOptions
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.