Created 'constants' package for const.go file and 'types' package for shared and exported types

This commit is contained in:
Kelvin Mwinuka
2024-04-01 18:32:01 +08:00
parent 4010306dee
commit d7c3509533
43 changed files with 2927 additions and 2913 deletions

View File

@@ -1,7 +1,7 @@
package config
import (
"github.com/echovault/echovault/pkg/utils"
"github.com/echovault/echovault/pkg/constants"
"time"
)
@@ -30,7 +30,7 @@ func DefaultConfig() Config {
RestoreSnapshot: false,
AOFSyncStrategy: "everysec",
MaxMemory: 0,
EvictionPolicy: utils.NoEviction,
EvictionPolicy: constants.NoEviction,
EvictionSample: 20,
EvictionInterval: 100 * time.Millisecond,
}