Skip to content

Commit 69ff51f

Browse files
committed
proofread
1 parent 3d9a60b commit 69ff51f

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
@@ -65,7 +65,7 @@ cache.GetOrCreateAsync($"user_prefs_{userId}", ...);
6565

6666
It's the caller's responsibility to ensure that a key scheme is valid and can't cause data to become confused.
6767

68-
Avoid using external user input directly in cache keys. For example, don't use raw strings from user interfaces as cache keys. Doing so can expose your app to security risks, such as unauthorized access or denial-of-service attacks caused by flooding the cache with random or meaningless keys. In the valid examples above, the *order* and *user preference* data are clearly separated and use trusted identifiers:
68+
Avoid using external user input directly in cache keys. For example, don't use raw strings from user interfaces as cache keys. Doing so can expose your app to security risks, such as unauthorized access or denial-of-service attacks caused by flooding the cache with random or meaningless keys. In the preceding valid examples, the *order* and *user preference* data are clearly separated and use trusted identifiers:
6969

7070
* `orderid` and `userId` are internally generated identifiers.
7171
* `region` might be an enum or string from a predefined list of known regions.

0 commit comments

Comments
 (0)