@@ -25,7 +25,6 @@ func DefaultOptions(path string) Options {
2525 WalMMap : false ,
2626 ValueLogFileSize : 1024 << 20 ,
2727 ValueLogMmap : false ,
28- ValueThreshold : 0 ,
2928 ValueLogGCRatio : 0.5 ,
3029 ValueLogGCInterval : time .Minute * 10 ,
3130 },
@@ -43,7 +42,6 @@ func DefaultColumnFamilyOptions(name string) ColumnFamilyOptions {
4342 WalMMap : false ,
4443 ValueLogFileSize : 1024 << 20 ,
4544 ValueLogMmap : false ,
46- ValueThreshold : 0 ,
4745 ValueLogGCRatio : 0.5 ,
4846 ValueLogGCInterval : time .Minute * 10 ,
4947 }
@@ -79,6 +77,7 @@ type ColumnFamilyOptions struct {
7977
8078 // MemSpaceWaitTimeout represents timeout for waiting enough memtable space to write.
8179 // In this scenario will wait: memtable has reached the maximum nums, and has no time to be flushed into disk.
80+ // Default value is 100ms.
8281 MemSpaceWaitTimeout time.Duration
8382
8483 // IndexerDir dir path to store index meta data, default value is dir path.
@@ -108,11 +107,6 @@ type ColumnFamilyOptions struct {
108107 // ValueLogMmap similar to WalMMap, default value is false.
109108 ValueLogMmap bool
110109
111- // ValueThreshold sets the threshold used to decide whether a value is stored directly in the Index(B+Tree right now) or separately in value log file.
112- // If the threshold is zero, that means all values will be stored in value log file.
113- // Default value is 0.
114- ValueThreshold int
115-
116110 // ValueLogGCRatio if discarded data in value log exceeds this ratio, it can be picked up for compaction(garbage collection)
117111 // And if there are many files reached the ratio, we will pick the highest one by one.
118112 // The recommended ratio is 0.5, half of the file can be compacted.
@@ -145,7 +139,7 @@ type WriteOptions struct {
145139 // Default value is false.
146140 DisableWal bool
147141
148- // ExpiredAt time to live for the specified key, a time.Unix value.
142+ // ExpiredAt time to live for the specified key, must be a time.Unix value.
149143 // It will be ignored if it`s not a positive number.
150144 // Default value is 0.
151145 ExpiredAt int64
0 commit comments