Skip to content

Commit ec84a48

Browse files
tdykstraCopilot
andauthored
Update aspnetcore/performance/caching/hybrid.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 79d2a97 commit ec84a48

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
@@ -85,7 +85,7 @@ Notice that the inline interpolated string syntax (`$"..."` in the preceding exa
8585

8686
### Additional key considerations
8787

88-
* Keys can be restricted to valid maximum lengths. For example, the default `HybridCache` implementation (via `AddHybridCache(...)`) restricts keys to 1,024 characters by default. That number is configurable via `HybridCacheOptions.MaximumKeyLength`, with longer keys bypassing the cache mechanisms to prevent saturation.
88+
* 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.
8989
* Keys must be valid Unicode sequences. If invalid Unicode sequences are passed, the behavior is undefined.
9090
* 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.
9191

0 commit comments

Comments
 (0)