Add __len__ to lru_cache_object
This commit is contained in:
parent
d1a51ecef4
commit
3861f7f5d2
@ -154,6 +154,9 @@ class lru_cache_object(object):
|
||||
def __iter__(self):
|
||||
return iter(self.cache)
|
||||
|
||||
def __len__(self):
|
||||
return len(self.cache)
|
||||
|
||||
should_decache = None
|
||||
will_decache = None
|
||||
|
||||
|
Reference in New Issue
Block a user