Skip to content

Commit 30595bd

Browse files
authored
Update README.md
1 parent 7ad2b99 commit 30595bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ cache.AddOrUpdate(
6565

6666
cache.TryGet("answer", out int value); //value is "42"
6767
68+
//factory pattern! calls the expensive factory only if not cached yet
6869
cache.GetOrAdd(
6970
key: "answer",
7071
valueFactory: k => 42,

0 commit comments

Comments
 (0)