fix cache
This commit is contained in:
parent
84b978278e
commit
f7eca425eb
1 changed files with 1 additions and 1 deletions
|
@ -542,9 +542,9 @@ class LargestValueCache:
|
||||||
return False
|
return False
|
||||||
popped = self._raw_cache.popleft()
|
popped = self._raw_cache.popleft()
|
||||||
self._cache.pop(popped.key)
|
self._cache.pop(popped.key)
|
||||||
|
self._cache[key] = value
|
||||||
item = LargestValueCacheItem(key, value)
|
item = LargestValueCacheItem(key, value)
|
||||||
insort_right(self._raw_cache, item)
|
insort_right(self._raw_cache, item)
|
||||||
self._cache[key] = value
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
|
|
Loading…
Reference in a new issue