Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def cache_info():
"""
Show statistics information
:return: a CacheInfo object describing the cache
"""
with lock:
return CacheInfo(hits, misses, cache.__len__(), max_size, algorithm,
ttl, thread_safe, order_independent, custom_key_maker is not None)
def cache_info():
"""
Show statistics information
:return: a CacheInfo object describing the cache
"""
with lock:
return CacheInfo(hits, misses, cache.__len__(), max_size, algorithm,
ttl, thread_safe, order_independent, custom_key_maker is not None)
def cache_info():
"""
Show statistics information
:return: a CacheInfo object describing the cache
"""
with lock:
return CacheInfo(0, misses, 0, max_size, algorithm,
ttl, thread_safe, order_independent, custom_key_maker is not None)
def cache_info():
"""
Show statistics information
:return: a CacheInfo object describing the cache
"""
with lock:
return CacheInfo(hits, misses, cache.__len__(), max_size, algorithm,
ttl, thread_safe, order_independent, custom_key_maker is not None)
def cache_info():
"""
Show statistics information
:return: a CacheInfo object describing the cache
"""
with lock:
return CacheInfo(hits, misses, cache.__len__(), max_size, algorithm,
ttl, thread_safe, order_independent, custom_key_maker is not None)