7 references to _cache
Microsoft.ML.Tokenizers (7)
Utils\LruCache.cs (7)
21private object SyncObj => _cache; 51if (_cache.TryGetValue(new StringSpanOrdinalKey(key), out LinkedListNode<KeyValuePair<string, TValue>>? cached)) 78if (_cache.TryGetValue(new StringSpanOrdinalKey(ptr, key.Length), out LinkedListNode<KeyValuePair<string, TValue>>? cached)) 101if (_cache.TryGetValue(new StringSpanOrdinalKey(key), out LinkedListNode<KeyValuePair<string, TValue>>? cached)) 109while (_cache.Count >= _cacheSize) 113_cache.Remove(new StringSpanOrdinalKey(nodeToEvict!.Value.Key)); 117_cache[new StringSpanOrdinalKey(key)] = node;