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: src/routes/docs/[...5]Immediate.Cache/[...1]creating-a-cache/+page.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,9 +63,10 @@ var response = await cache.GetValue(request, token);
63
63
If there is a cached value, it will be returned; otherwise a temporary scope will be used to create the handler and
64
64
execute it; and the returned value will be stored.
65
65
66
-
> [!NOTE]
67
-
> If simultaneous requests are made while the handler is executing, they will wait for the first handler to
66
+
:::admonition type="note"
67
+
If simultaneous requests are made while the handler is executing, they will wait for the first handler to
68
68
complete, rather than executing the handler a second/simultaenous time.
69
+
:::
69
70
70
71
## Removing Data From the Cache
71
72
@@ -74,9 +75,9 @@ Using an instance of the `GetValueCache` class that you have created above, you
74
75
awaitcache.RemoveValue(request);
75
76
```
76
77
77
-
> [!NOTE]
78
-
> If a handler is running based on this request, it will be cancelled, and any callers waiting on the results from
79
-
> this handler will experience a `CancellationToken` cancellation.
78
+
:::admonition type="note"
79
+
If a handler is running based on this request, it will be cancelled, and any callers waiting on the results from this handler will experience a `CancellationToken` cancellation.
80
+
:::
80
81
81
82
## Updating Data In the Cache
82
83
@@ -85,6 +86,6 @@ Using an instance of the `GetValueCache` class that you have created above, you
85
86
awaitcache.SetValue(request, response);
86
87
```
87
88
88
-
> [!NOTE]
89
-
> If a handler is running based on this request, it will be cancelled, and any callers waiting on the results from
90
-
> this handler will immediately receive the updated response.
89
+
:::admonition type="note"
90
+
If a handler is running based on this request, it will be cancelled, and any callers waiting on the results from this handler will immediately receive the updated response.
0 commit comments