From 4e6b4f179b7b9801bc2c781c2be7d0d689c45322 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 4 Jun 2021 12:20:44 -0300 Subject: [PATCH] add items() to LRUCache --- lbry/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lbry/utils.py b/lbry/utils.py index 763f0f811..c944ed29b 100644 --- a/lbry/utils.py +++ b/lbry/utils.py @@ -310,6 +310,9 @@ class LRUCache: self.cache.popitem(last=False) self.cache[key] = value + def items(self): + return self.cache.items() + def clear(self): self.cache.clear()