You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/performance/caching/hybrid.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,7 @@ Because much `HybridCache` usage will be adapted from existing `IDistributedCach
210
210
* They're immutable types.
211
211
* The code doesn't modify them.
212
212
213
-
In such cases, inform `HybridCache` that it's safe to reuse instances by making at least one of the following changes:
213
+
In such cases, inform `HybridCache` that it's safe to reuse instances by making both of the following changes:
214
214
215
215
* Marking the type as `sealed`. The `sealed` keyword in C# means that the class can't be inherited.
216
216
* Applying the `[ImmutableObject(true)]` attribute to the type. The `[ImmutableObject(true)]` attribute indicates that the object's state can't be changed after it's created.
Copy file name to clipboardExpand all lines: aspnetcore/release-notes/aspnetcore-9/includes/hybrid-cache.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ Because a lot of `HybridCache` usage will be adapted from existing `IDistributed
114
114
* If the types being cached are immutable.
115
115
* If the code doesn't modify them.
116
116
117
-
In such cases, inform `HybridCache` that it's safe to reuse instances by:
117
+
In such cases, inform `HybridCache` that it's safe to reuse instances by making both of the following changes:
118
118
119
119
* Marking the type as `sealed`. The `sealed` keyword in C# means that the class can't be inherited.
120
120
* Applying the `[ImmutableObject(true)]` attribute to it. The `[ImmutableObject(true)]` attribute indicates that the object's state can't be changed after it's created.
0 commit comments