Don't update eviction metrics on explicit removal

pull/3933/head
Erik Johnston 2018-10-01 11:59:52 +01:00
parent 9c8cec5dab
commit 8ea887856c
1 changed files with 0 additions and 5 deletions

View File

@ -103,11 +103,6 @@ class ExpiringCache(object):
if value is SENTINEL:
return default
if self.iterable:
self.metrics.inc_evictions(len(value.value))
else:
self.metrics.inc_evictions()
return value
def __contains__(self, key):