We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ad2b99 commit 30595bdCopy full SHA for 30595bd
README.md
@@ -65,6 +65,7 @@ cache.AddOrUpdate(
65
66
cache.TryGet("answer", out int value); //value is "42"
67
68
+//factory pattern! calls the expensive factory only if not cached yet
69
cache.GetOrAdd(
70
key: "answer",
71
valueFactory: k => 42,
0 commit comments