<clear> Element for <namedCaches>
Collapse the table of content
Expand the table of content

<clear> Element for <namedCaches>

.NET Framework (current version)
 

Clears all namedCache entries in the namedCaches collection for a memory cache.

<system.runtime.caching>
<memoryCache>
<namedCaches>
<add>

<namedCaches>
    <clear name="default" />
    <!-- child elements -->
 </namedCaches>

Type

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child Elements

None

Parent Elements

Element

Description

<namedCaches>

Contains a collection of configuration settings for the named 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.

Show:
© 2016 Microsoft