Skip to content

Commit 6103587

Browse files
mgravelltdykstra
andauthored
Update aspnetcore/performance/caching/hybrid.md
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
1 parent 5f12c20 commit 6103587

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aspnetcore/performance/caching/hybrid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Notice that the inline interpolated string syntax (`$"..."` in the preceding exa
9494

9595
* Keys can be restricted to valid maximum lengths. For example, the default `HybridCache` implementation (via `AddHybridCache(...)`) restricts keys to 1024 characters by default. That number is configurable via `HybridCacheOptions.MaximumKeyLength`, with longer keys bypassing the cache mechanisms to prevent saturation.
9696
* Keys must be valid Unicode sequences. If invalid Unicode sequences are passed, the behavior is undefined.
97-
* When using an out-of-process secondary cache such as `IDistributedCache`, the specific backend implementation may impose additional restrictions. As a hypothetical example, a particular backend might use case-insensitive key logic. The default `HybridCache` (via `AddHybridCache(...)`) detects this scenario to prevent confusion/alias attacks (using bitwise string equality), however it may still result in conflicting keys becoming overwritten or evicted sooner than expected.
97+
* When using an out-of-process secondary cache such as `IDistributedCache`, the backend implementation may impose additional restrictions. As a hypothetical example, a particular backend might use case-insensitive key logic. The default `HybridCache` (via `AddHybridCache(...)`) detects this scenario to prevent confusion attacks or alias attacks (using bitwise string equality). However, this scenario might still result in conflicting keys becoming overwritten or evicted sooner than expected.
9898

9999
### The alternative `GetOrCreateAsync` overload
100100

0 commit comments

Comments
 (0)