Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
 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)