Share via


CacheManager.Flush Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Removes all items from the cache. If an error occurs during the removal, the cache is left unchanged.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Caching
Assembly:  Microsoft.Practices.EnterpriseLibrary.Caching (in Microsoft.Practices.EnterpriseLibrary.Caching.dll)

Syntax

'Declaration
PublicSubFlush
publicvoidFlush()
public:
voidFlush()
publicfunctionFlush()

Remarks

The CacheManager can be configured to use different storage mechanisms in which to store the CacheItems. Each of these storage mechanisms can throw exceptions particular to their own implementations.

See Also

CacheManager Class

Microsoft.Practices.EnterpriseLibrary.Caching Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.