Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions projects/jupyter-server-ydoc/jupyter_server_ydoc/stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,18 @@ class SQLiteYStore(LoggingConfigurable, _SQLiteYStore, metaclass=SQLiteYStoreMet
help="""The document time-to-live in seconds. Defaults to None (document history is never
cleared).""",
)

history_length = Int(
None,
allow_none=True,
config=True,
help="""The maximum age (in seconds) of document history to retain.
Entries older than this window are automatically pruned.
Defaults to None (history is never cleared).""",
)

min_cleanup_interval = Int(
60,
config=True,
help="""Minimum interval in seconds between automatic cleanup operations. Defaults to 60 seconds.""",
)
Loading