use object_store::memory::InMemory;
use super::super::ObjectStorage;
#[derive(Clone, Debug)]
pub struct MemoryObjectStorageBuilder {
name: String,
}
impl MemoryObjectStorageBuilder {
pub(crate) fn new(name: impl Into<String>) -> Self {
Self { name: name.into() }
}
#[must_use]
pub fn build(self) -> ObjectStorage<InMemory> {
ObjectStorage::from_store(self.name, InMemory::new())
}
}