You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/langfuse/prompt_cache.rb
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -59,18 +59,18 @@ def expired?
59
59
#
60
60
# @param ttl [Integer] Time-to-live in seconds (default: 60)
61
61
# @param max_size [Integer] Maximum cache size (default: 1000)
62
-
# @param stale_ttl [Integer, nil] Stale TTL for SWR (default: nil, disabled)
62
+
# @param stale_ttl [Integer, Float::INFINITY, nil] Stale TTL for SWR (default: same as ttl, SWR disabled). Use Float::INFINITY for 1000 years, e.g. non-expiring cache.
63
63
# @param refresh_threads [Integer] Number of background refresh threads (default: 5)
64
64
# @param logger [Logger, nil] Logger instance for error reporting (default: nil, creates new logger)
# @param lock_timeout [Integer] Lock timeout in seconds for stampede protection (default: 10)
27
-
# @param stale_ttl [Integer, nil] Stale TTL for SWR (default: nil, disabled)
27
+
# @param stale_ttl [Integer, Float::INFINITY, nil] Stale TTL for SWR (default: same as ttl, SWR disabled). Use Float::INFINITY for 1000 years, e.g. non-expiring cache.
28
28
# @param refresh_threads [Integer] Number of background refresh threads (default: 5)
29
29
# @param logger [Logger, nil] Logger instance for error reporting (default: nil, creates new logger)
30
30
# @raise [ConfigurationError] if Rails.cache is not available
0 commit comments