| Conditions | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 27 | @staticmethod |
||
| 28 | def get_statistic() -> dict: |
||
| 29 | """ |
||
| 30 | Return the number of cached object. Group by cache_group and object name |
||
| 31 | |||
| 32 | :return: dict |
||
| 33 | """ |
||
| 34 | statistic: dict = {} |
||
| 35 | |||
| 36 | for group_name in DataCaching.__cache: |
||
| 37 | statistic[group_name] = {} |
||
| 38 | |||
| 39 | for object_id in DataCaching.__cache[group_name]: |
||
| 40 | statistic[group_name][object_id] = len(DataCaching.__cache[group_name][object_id]) |
||
| 41 | |||
| 42 | return statistic |
||
| 43 | |||
| 75 |