mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
fix(auth_checks.py): set default user in-memory cache to 5s
This commit is contained in:
parent
f71bab3909
commit
f73fca2977
1 changed files with 3 additions and 1 deletions
|
|
@ -726,7 +726,9 @@ async def get_user_object(
|
|||
response_dict = _response.model_dump()
|
||||
|
||||
# save the user object to cache
|
||||
await user_api_key_cache.async_set_cache(key=user_id, value=response_dict)
|
||||
await user_api_key_cache.async_set_cache(
|
||||
key=user_id, value=response_dict, ttl=DEFAULT_IN_MEMORY_TTL
|
||||
)
|
||||
|
||||
# save to db access time
|
||||
_update_last_db_access_time(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue