public void Flush() { lock (syncRoot) { // Remove all the cache items from storage cacheStorage.Flush(); // Call the CacheService's Asynch Remove method // to flush the item's expirations, dependencies // and its priority for the cache items FlushMetadata(); } }