File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
quixstreams/state/rocksdb Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 24
24
"TimestampedPartitionTransaction" ,
25
25
)
26
26
27
- DAYS_7 = 7 * 24 * 60 * 60 * 1000
27
+ DAY_MS = 24 * 60 * 60 * 1000
28
28
29
29
MIN_ELIGIBLE_TIMESTAMPS_CF_NAME = "__min-eligible-timestamps__"
30
30
MIN_ELIGIBLE_TIMESTAMPS_KEY = b"__min_eligible_timestamps__"
@@ -128,7 +128,7 @@ def set_for_timestamp(
128
128
timestamp : int ,
129
129
value : Any ,
130
130
prefix : Any ,
131
- retention_ms : int = DAYS_7 ,
131
+ retention_ms : int = 7 * DAY_MS ,
132
132
) -> None :
133
133
"""Set a value for the timestamp.
134
134
@@ -143,6 +143,7 @@ def set_for_timestamp(
143
143
:param timestamp: Timestamp associated with the value in milliseconds.
144
144
:param value: The value to store.
145
145
:param prefix: The key prefix.
146
+ :param retention_ms: retention for the key in milliseconds
146
147
"""
147
148
prefix = self ._ensure_bytes (prefix )
148
149
super ().set (timestamp , value , prefix )
You can’t perform that action at this time.
0 commit comments