Skip to content

Commit 966dce6

Browse files
abrookinsCopilot
andauthored
Update redisvl/extensions/cache/llm/langcache.py
Co-authored-by: Copilot <[email protected]>
1 parent 1d6b8b1 commit 966dce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisvl/extensions/cache/llm/langcache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ async def astore(
527527
logger.warning("LangCache does not support filters")
528528

529529
try:
530-
ttl_millis = int(ttl * 1000) if ttl is not None else None
530+
ttl_millis = round(ttl * 1000) if ttl is not None else None
531531
if metadata:
532532
safe_metadata = _encode_attributes_for_langcache(metadata)
533533
result = await self._client.set_async(

0 commit comments

Comments
 (0)