private void CheckState(Index index) { lock (_thisLock) { if (index == null) return; foreach (var group in index.Groups) { var keys = new List<Key>(); foreach (var key in group.Keys) { if (!_cacheManager.Contains(key)) continue; keys.Add(key); } _existManager.Add(group, keys); } } }
private void UncheckState(Index index) { lock (_thisLock) { if (index == null) return; foreach (var group in index.Groups) { _existManager.Remove(group); } } }