(area: str, key: Any, data: Any)
| 38 | |
| 39 | |
| 40 | def add(area: str, key: Any, data: Any) -> None: |
| 41 | if not _is_enabled(area): |
| 42 | return |
| 43 | with _lock: |
| 44 | if area not in _cache: |
| 45 | _cache[area] = {} |
| 46 | _cache[area][key] = _create_entry(data) |
| 47 | |
| 48 | |
| 49 | def get(area: str, key: Any, default: Any = None) -> Any: |
nothing calls this directly
no test coverage detected