Use memory footprint of sugardb.store to compare against max memory for eviction policies (#133)

Improved memory usage reporting. - @osteensco
This commit is contained in:
osteensco
2024-10-03 21:14:12 -05:00
committed by GitHub
parent 241badf023
commit ff96d45b76
13 changed files with 6211 additions and 5772 deletions

View File

@@ -3353,7 +3353,7 @@ func Test_LFU_Generic(t *testing.T) {
DataDir: "",
EvictionPolicy: constants.AllKeysLFU,
EvictionInterval: duration,
MaxMemory: 4000000,
MaxMemory: 550,
}),
)
if err != nil {
@@ -3534,7 +3534,7 @@ func Test_LRU_Generic(t *testing.T) {
DataDir: "",
EvictionPolicy: constants.AllKeysLRU,
EvictionInterval: duration,
MaxMemory: 4000000,
MaxMemory: 550,
}),
)
if err != nil {