description | title | ms.date | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|
Learn more about: <clear> Element for <namedCaches> |
<clear> Element for <namedCaches> |
03/30/2017 |
|
ea01a858-65da-4348-800f-5e3df59d4d79 |
Clears all namedCache
entries in the namedCaches
collection for a memory cache.
<configuration>
<system.runtime.caching>
<memoryCache>
<namedCaches>
<clear>
<namedCaches>
<clear name="Default" />
<!-- child elements -->
</namedCaches>
Type
The following sections describe attributes, child elements, and parent elements.
None
None
Element | Description |
---|---|
<namedCaches> | Contains a collection of configuration settings for the named xref:System.Runtime.Caching.MemoryCache instances. |
The clear
element clears all namedCache
entries in the named cache collection for a memory cache. You can use the clear
element before you use the add
element to add a new named cache entry in order to be certain there are no other named caches in the collection.