set maxlen
This commit is contained in:
parent
99e1006cb5
commit
579f95f9fc
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ class LargestValueCache:
|
|||
def __init__(self, capacity: int):
|
||||
self._capacity = max(capacity, 0)
|
||||
self._cache = {}
|
||||
self._raw_cache: Deque[LargestValueCacheItem] = deque()
|
||||
self._raw_cache: Deque[LargestValueCacheItem] = deque(maxlen=capacity)
|
||||
|
||||
def items(self):
|
||||
return self._cache.items()
|
||||
|
|
Loading…
Reference in a new issue