Add tests for sweeper (sync)

This commit is contained in:
William Fu-Hinthorn
2025-03-14 13:43:53 -07:00
parent 06ca07432d
commit 9741d9bdf0
6 changed files with 493 additions and 194 deletions
+6
View File
@@ -27,6 +27,12 @@ class TTLConfig(TypedDict, total=False):
If provided, all new items will have this TTL unless explicitly overridden.
If omitted, items will have no TTL by default.
"""
sweep_interval_minutes: Optional[int]
"""Optional. Interval in minutes between TTL sweep iterations.
If provided, the store will periodically delete expired items based on the TTL.
If omitted, no automatic sweeping will occur.
"""
class IndexConfig(TypedDict, total=False):