This topic has not yet been rated - Rate this topic

IMemoryCacheControl::ResetCache 

Call this method to remove the contents of the cache and reset the statistics to zero.


STDMETHOD(ResetCache)();

Returns S_OK on success, or an error HRESULT on failure.

A cache may collect statistics related to its use including such information as effectiveness of the cache and memory used. Calling this method removes all the items from the cache and clears the historical statistics for the cache.

HTTP_CODE ResetCache()
{
    if (FAILED(m_spControl->ResetCache()))
    {
        return HTTP_FAIL;
    }

    return HTTP_SUCCESS;
}
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.