Skip to content

Commit c067fd5

Browse files
committed
copilot
1 parent 69ff51f commit c067fd5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

aspnetcore/performance/caching/hybrid.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ A concrete implementation of the `HybridCache` abstract class is included in the
242242

243243
Make sure all types you cache are referenced in a way that prevents them from being trimmed by the AOT compiler. Using source generators for serialization helps with this requirement. For more information, see <xref:fundamentals/native-aot>.
244244

245-
So the main difference if you want to use AOT with `AddHybridCache` is the need to ensure that your serialization setup is AOT-compatible. Otherwise, `HybridCache` works the same way in Native AOT as in regular ASP.NET Core apps.
246-
245+
If you set up serialization and trimming correctly, `HybridCache` behaves the sme way in Native AOT as in regular ASP.NET Core apps.
247246

248247
## Compatibility
249248

0 commit comments

Comments
 (0)