Module rubbish::cas
[−]
[src]
cas
-- a distributed, content-addressible, in-memory storage system. The
system uses a "gossip"-style protocol to ensure that all participants have
all content, and supports generational garbage collection and persistence
to disk.
The API is in the ContentAddressibleStorage
trait.
Examples
use rubbish::cas::ContentAddressibleStorage; let mut storage = rubbish::cas::Storage::new(); let hash = storage.store(&42u32); let result : Option<u32> = storage.retrieve(&hash); assert_eq!(result, Some(42u32));
Structs
Hash |
Type Hash represents the key under which content is stored. |
Storage |
Type Storage provides a distributed content-addressible storage pool. The content
inserted into the mechanism can be of any type implementing the |
Traits
ContentAddressibleStorage |