(area: str, key: Any, default: Any = None)
| 47 | |
| 48 | |
| 49 | def get(area: str, key: Any, default: Any = None) -> Any: |
| 50 | if not _is_enabled(area): |
| 51 | return default |
| 52 | with _lock: |
| 53 | entry = _cache.get(area, {}).get(key) |
| 54 | if entry is None: |
| 55 | return default |
| 56 | _touch_entry(entry) |
| 57 | return entry.value |
| 58 | |
| 59 | |
| 60 | def remove(area: str, key: Any) -> None: |
nothing calls this directly
no test coverage detected