mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
fix(auth): fill prefetch with serialized cache payloads
This commit is contained in:
parent
db20818ece
commit
dd9c35b86f
1 changed files with 2 additions and 1 deletions
|
|
@ -297,8 +297,9 @@ async def _write_back(
|
|||
)
|
||||
shared: Final = cache.shared
|
||||
if generation is not None:
|
||||
assert shared is not None
|
||||
for cache_key, payload, ttl in payloads:
|
||||
cache.set_if_generation(cache_key, payload, generation, ttl)
|
||||
shared.set_if_generation(cache_key, payload, generation, ttl)
|
||||
return
|
||||
if shared is not None:
|
||||
with service_target(AUTH_OBJECTS_TARGET):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue