From 421220e84a2584d8f67d438a6f0e96ae6bfceb23 Mon Sep 17 00:00:00 2001 From: Yudha Subki Date: Sat, 16 Dec 2023 20:49:23 +0700 Subject: [PATCH] feat: rename bucket -> kv and disable cache --- bucket.go => kv.go | 0 pkg/etcd/etcd.go | 1 + 2 files changed, 1 insertion(+) rename bucket.go => kv.go (100%) 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