(cls, key: str)
| 36 | |
| 37 | @classmethod |
| 38 | def get(cls, key: str) -> Any: |
| 39 | if cls.mode == ConcurrencyMode.THREAD: |
| 40 | return cls._get_thread_local(key) |
| 41 | else: |
| 42 | raise RuntimeError(Exceptions.UNKNOWN_MODE) |
| 43 | |
| 44 | @classmethod |
| 45 | def set(cls, key: str, val: Any) -> None: |