Index: impl/memory/datastore.go |
diff --git a/impl/memory/datastore.go b/impl/memory/datastore.go |
index 84f5adddb53b2fbbb571bed4ff50c868532da881..e43a7e7f0fb42fe958d094237b86b29be82ecd6f 100644 |
--- a/impl/memory/datastore.go |
+++ b/impl/memory/datastore.go |
@@ -29,6 +29,11 @@ func useRDS(c context.Context) context.Context { |
}) |
} |
+// NewDatastore creates a new standalone memory implementation of the datastore. |
+func NewDatastore(ns string) ds.RawInterface { |
+ return &dsImpl{newDataStoreData(), ns, context.Background()} |
+} |
+ |
//////////////////////////////////// dsImpl //////////////////////////////////// |
// dsImpl exists solely to bind the current c to the datastore data. |