diff --git a/bucket.go b/kv.go similarity index 100% rename from bucket.go rename to kv.go diff --git a/pkg/etcd/etcd.go b/pkg/etcd/etcd.go index 69a4c76..5c746e6 100644 --- a/pkg/etcd/etcd.go +++ b/pkg/etcd/etcd.go @@ -37,6 +37,7 @@ func New(dbName string, opts ...opt) (*Etcd, error) { nutsdb.WithDir(dbName), nutsdb.WithEntryIdxMode(nutsdb.HintKeyAndRAMIdxMode), nutsdb.WithSyncEnable(opt.sync), + nutsdb.WithHintKeyAndRAMIdxCacheSize(0), ) if err != nil { return &Etcd{}, err