diff --git a/src/storage/mod.rs b/src/storage/mod.rs index e51307df..16fbe4f6 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -1,4 +1,26 @@ +use std::cell::RefCell; +use std::collections::HashMap; + pub mod path; pub mod file; pub mod parser; pub mod json; + +use storage::file::File; +use storage::file::id::FileID; + +type Cache<'a> = HashMap>>; + +pub struct Store<'a> { + cache : RefCell>, +} + +impl<'a> Store<'a> { + + pub fn new() -> Store<'a> { + Store { + cache: RefCell::new(HashMap::new()), + } + } + +}