Skip to content

Commit 8e677ad

Browse files
committed
Fix notes in Immediate.Cache docs
1 parent 6d91d19 commit 8e677ad

File tree

1 file changed

+9
-8
lines changed
  • src/routes/docs/[...5]Immediate.Cache/[...1]creating-a-cache

1 file changed

+9
-8
lines changed

src/routes/docs/[...5]Immediate.Cache/[...1]creating-a-cache/+page.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ var response = await cache.GetValue(request, token);
6363
If there is a cached value, it will be returned; otherwise a temporary scope will be used to create the handler and
6464
execute it; and the returned value will be stored.
6565

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
6868
complete, rather than executing the handler a second/simultaenous time.
69+
:::
6970

7071
## Removing Data From the Cache
7172

@@ -74,9 +75,9 @@ Using an instance of the `GetValueCache` class that you have created above, you
7475
await cache.RemoveValue(request);
7576
```
7677

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+
:::
8081

8182
## Updating Data In the Cache
8283

@@ -85,6 +86,6 @@ Using an instance of the `GetValueCache` class that you have created above, you
8586
await cache.SetValue(request, response);
8687
```
8788

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.
91+
:::

0 commit comments

Comments
 (0)