holochain_persistence_mem

Crates.ioholochain_persistence_mem
lib.rsholochain_persistence_mem
version0.0.18
sourcesrc
created_at2019-06-13 20:51:22.180888
updated_at2020-03-10 18:27:39.633454
descriptionpersistence for content addressable storage and entity attribute value indexes. A simple, thread-safe in memory store.
homepage
repositoryhttps://github.com/holochain/holochain-persistence
max_upload_size
id140950
size11,388
Core Dev (github:holochain:core-dev)

documentation

https://docs.rs/holochain_persistence_mem

README

holochain_persistence_mem

Project Chat

Twitter Follow

License: Apache-2.0

Overview

Pure rust, thread safe in memory persistence implementations for holochain. Provides content addressable storage (CAS) and entity attribute value (index) associative stores with a pure in memory store.

Usage

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

use holochain_persistence_mem::cas::memory::MemoryStore;

fn init() -> MemoryStore {
  let store = MemoryStore::new();
  store.add(<some_content>);
  store
}

Contribute

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

License: Apache-2.0

Copyright (C) 2019, Holochain Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Commit count: 431

cargo fmt