def statistic_record(self, desc=True, timeout=3, is_async=False, only_read=True, *keys):
        """
        Returns a list that each element is a dictionary of the statistic info of the cache item.
        """
        if len(keys) == 0:
            records = self._generate_statistic_records()
        else:
            records = self._generate_statistic_records_by_keys(keys)
        return sorted(records, key=lambda t: t['hit_counts'], reverse=desc)
def statistic_record ( self , desc = True , timeout = 3 , is_async = False , only_read = True , * keys ) : if len ( keys ) == 0 : records = self . _generate_statistic_records ( ) else : records = self . _generate_statistic_records_by_keys ( keys ) return sorted ( records , key = lambda t : t [ 'hit_counts' ] , reverse = desc )
Returns a list that each element is a dictionary of the statistic info of the cache item.