public void ResetQueueAndCache() { QueryQueueMutex.WaitOne(); for (; ;) { if (QueryQueue.Pop() == null) { break; } } QueryQueueMutex.ReleaseMutex(); lock (QueryCacheLock) { QueryCache.Clear(); } }
public static void ClearCache() { QueryCache.Clear(); }