(*args, **kwargs)
| 220 | |
| 221 | @functools.wraps(func) |
| 222 | async def async_wrapper(*args, **kwargs): |
| 223 | cache_key = _generate_cache_key(func, args, kwargs) |
| 224 | |
| 225 | if backend.has_key(cache_key): |
| 226 | logger.debug(f"Cache hit for {cache_key}") |
| 227 | return backend.get(cache_key) |
| 228 | |
| 229 | result = await func(*args, **kwargs) |
| 230 | picklable_result = _make_pydantic_picklable(result) |
| 231 | backend.set(cache_key, picklable_result) |
| 232 | return result |
| 233 | |
| 234 | @functools.wraps(func) |
| 235 | def sync_wrapper(*args, **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…