Skip to content

Commit bd0d06b

Browse files
prasanthlouisThraka
authored andcommitted
Update Cache.xml (#2720)
I think it'd be more clear if it was explained that using the Add method to add to an already existing key fails "silently" rather than throwing an exception, or something along those lines. I was expecting "fails" was going throw an exception just like how dictionaries work. What do you guys think?
1 parent 1c36895 commit bd0d06b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Web.Caching/Cache.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
<format type="text/markdown"><![CDATA[
115115
116116
## Remarks
117-
Calls to this method will fail if an item with the same `key` parameter is already stored in the `Cache`. To overwrite an existing `Cache` item using the same `key` parameter, use the <xref:System.Web.Caching.Cache.Insert%2A> method.
117+
Calls to this method will fail silently if an item with the same `key` parameter is already stored in the `Cache`. To overwrite an existing `Cache` item using the same `key` parameter, use the <xref:System.Web.Caching.Cache.Insert%2A> method.
118118
119119
You cannot set both the `absoluteExpiration` and `slidingExpiration` parameters. If you intend the cache item to expire at a specific time, you set the `absoluteExpiration` parameter to the specific time, and the `slidingExpiration` parameter to <xref:System.Web.Caching.Cache.NoSlidingExpiration>.
120120
@@ -816,4 +816,4 @@
816816
</Docs>
817817
</Member>
818818
</Members>
819-
</Type>
819+
</Type>

0 commit comments

Comments
 (0)