holochain_persistence_file 0.0.18

persistence for content addressable storage and entity attribute value indexes. A file system based implementation using directory hieraarchies to navigate data.


Project Chat

Twitter Follow

License: Apache-2.0


Filesystem persistence implementations for holochain. Provides content addressable storage (CAS) and entity attribute value (index) associations using hiearchical based filesystem storage.


Add holochain_persistence_file crate to your Cargo.toml. Below is a stub for creating a storage unit and adding some content.

use holochain_persistence_file::cas::file::FilesystemStorage;
use tempfile::tempdir;

pub fn init() -> FilesystemStorage {
  let dir = tempdir().expect("Could not create a tempdir for CAS.");
  let store = FilesystemStorage::new(dir.path()).unwrap();
  store.add(<some_content>).expect("added some content");


Holochain is an open source project. We welcome all sorts of participation and are actively working on increasing surface area to accept it. Please see our contributing guidelines for our general practices and protocols on participating in the community.


License: Apache-2.0

Copyright (C) 2019, Holochain Foundation


