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
Added support to expire specfic member of a sorted set (#1000)
* Added support to expire specfic member of a sorted set by adding family of commands
* Removed temp file
* Added test cases
* Format fix
* Fixed formating
* Fixed review commands
* Fixed test case failure
* Fixed slot test case
* Fixed review commands
* Fixed review comments
* Format fix
* Review comment fix
* Review comment fix for reusing parseState
* Fixed issue after pulling latest
* Fixed custom proc
* PR review comment fix
* Fixed review comments
* close lock for hcollect as well
Copy file name to clipboardExpand all lines: libs/host/Configuration/Options.cs
+4-3
Original file line number
Diff line number
Diff line change
@@ -237,9 +237,10 @@ internal sealed class Options
237
237
[IntRangeValidation(0,int.MaxValue)]
238
238
[Option("compaction-freq",Required=false,HelpText="Background hybrid log compaction frequency in seconds. 0 = disabled (compaction performed before checkpointing instead)")]
239
239
publicintCompactionFrequencySecs{get;set;}
240
+
240
241
[IntRangeValidation(0,int.MaxValue)]
241
-
[Option("hcollect-freq",Required=false,HelpText="Frequency in seconds for the background task to perform Hash collection. 0 = disabled. Hash collect is used to delete expired fields from hash without waiting for a write operation. Use the HCOLLECT API to collect on-demand.")]
242
-
publicintHashCollectFrequencySecs{get;set;}
242
+
[Option("expired-object-collection-freq",Required=false,HelpText="Frequency in seconds for the background task to perform object collection which removes expired members within object from memory. 0 = disabled. Use the HCOLLECT and ZCOLLECT API to collect on-demand.")]
[Option("compaction-type",Required=false,HelpText="Hybrid log compaction type. Value options: None - no compaction, Shift - shift begin address without compaction (data loss), Scan - scan old pages and move live records to tail (no data loss), Lookup - lookup each record in compaction range, for record liveness checking using hash chain (no data loss)")]
245
246
publicLogCompactionTypeCompactionType{get;set;}
@@ -766,7 +767,7 @@ public GarnetServerOptions GetServerOptions(ILogger logger = null)
Copy file name to clipboardExpand all lines: libs/host/defaults.conf
+2-2
Original file line number
Diff line number
Diff line change
@@ -162,8 +162,8 @@
162
162
/* Background hybrid log compaction frequency in seconds. 0 = disabled (compaction performed before checkpointing instead) */
163
163
"CompactionFrequencySecs" : 0,
164
164
165
-
/* Frequency in seconds for the background task to perform Hash collection. 0 = disabled. Hash collect is used to delete expired fields from hash without waiting for a write operation. Use the HCOLLECT API to collect on-demand. */
166
-
"HashCollectFrequencySecs" : 0,
165
+
/* Frequency in seconds for the background task to perform object collection which removes expired members within object from memory. 0 = disabled. Use the HCOLLECT and ZCOLLECT API to collect on-demand. */
0 commit comments