diff --git a/README.md b/README.md index a8d4e27..44fe04a 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ import ( "log" "github.com/dgraph-io/badger/v4" c "github.com/ostafen/clover" - badgerstore "github.com/ostafen/store/badger" + badgerstore "github.com/ostafen/clover/v2/store/badger" ) ... @@ -64,9 +64,6 @@ db, _ := c.Open("clover-db") store, _ := badgerstore.Open(badger.DefaultOptions("").WithInMemory(true)) // opens a badger in memory database db, _ := c.OpenWithStore(store) -// or, if you don't need persistency -db, _ := c.Open("", c.InMemoryMode(true)) - defer db.Close() // remember to close the db when you have done ```