Skip to content

Commit 1d6b8b1

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

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
@@ -454,7 +454,7 @@ def store(
454454
logger.warning("LangCache does not support filters")
455455

456456
try:
457-
ttl_millis = int(ttl * 1000) if ttl is not None else None
457+
ttl_millis = round(ttl * 1000) if ttl is not None else None
458458
if metadata:
459459
safe_metadata = _encode_attributes_for_langcache(metadata)
460460
result = self._client.set(

0 commit comments

Comments
 (0)