Skip to content

Commit

Permalink
Minor docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jodydonetti committed Jan 19, 2021
1 parent 92662e9 commit 225be03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var id = 42;

cache.GetOrSet<Product>(
$"product:{id}",
key => GetProductFromDb(id),
_ => GetProductFromDb(id),
TimeSpan.FromSeconds(30)
);
```
Expand All @@ -143,7 +143,7 @@ To do all of that we simply have to change the last line (reformatted for better
```csharp
cache.GetOrSet<Product>(
$"product:{id}",
key => GetProductFromDb(id),
_ => GetProductFromDb(id),
// THIS IS WHERE THE MAGIC HAPPENS
options => options
.SetDuration(TimeSpan.FromSeconds(30))
Expand Down Expand Up @@ -178,7 +178,7 @@ var id = 42;

cache.GetOrSet<Product>(
$"product:{id}",
key => GetProductFromDb(id),
_ => GetProductFromDb(id),
options => options.SetDuration(TimeSpan.FromSeconds(30))
);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/nuget-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var id = 42;

cache.GetOrSet<Product>(
$"product:{id}",
key => GetProductFromDb(id),
_ => GetProductFromDb(id),
TimeSpan.FromSeconds(30)
);
```
Expand Down

0 comments on commit 225be03

Please sign in to comment.