zboxfs / zbox

Zero-details, privacy-focused in-app file system.
https://zbox.io/fs/
Apache License 2.0
1.54k stars 76 forks source link

Memory storage should be persistent during process lifetime #50

Closed burmecia closed 5 years ago

burmecia commented 5 years ago

The memory storage currently is not identified by its URI, that is, each time repo.open is called a new memory storage is created regardless the URI. An in-memory 'persistent' storage should be used as back-end of memory storage, so that an URI specific memory storage can be opened multiple times during process lifetime.

For example, the 2 open calls below should open the same memory storage.

{
  let repo = RepoOpener::new().create(true).open("mem://foo", "pwd");
}
{
  let repo = RepoOpener::new().create(true).open("mem://foo", "pwd");
}