forked from LBRYCommunity/lbry-sdk
add items() to LRUCache
This commit is contained in:
parent
00d038c8f3
commit
4e6b4f179b
1 changed files with 3 additions and 0 deletions
|
@ -310,6 +310,9 @@ class LRUCache:
|
||||||
self.cache.popitem(last=False)
|
self.cache.popitem(last=False)
|
||||||
self.cache[key] = value
|
self.cache[key] = value
|
||||||
|
|
||||||
|
def items(self):
|
||||||
|
return self.cache.items()
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
self.cache.clear()
|
self.cache.clear()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue