- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for _endpoint_context_cache (0.41 seconds)
-
fastapi/routing.py
# Cache for endpoint context to avoid re-extracting on every request _endpoint_context_cache: dict[int, EndpointContext] = {} def _extract_endpoint_context(func: Any) -> EndpointContext: """Extract endpoint context with caching to avoid repeated file I/O.""" func_id = id(func) if func_id in _endpoint_context_cache: return _endpoint_context_cache[func_id] try: ctx: EndpointContext = {}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 193K bytes - Click Count (0)