[][src]Module holochain_persistence_api::cas::storage

ContentAddressableStorage (CAS) is defined here as a trait, such that there could be various implementations, such as the memory based, and file storage based implementations already in this code base. ContentAddressableStorage is a way of reading and writing AddressableContent in a persistent data store. A test suite for CAS is also implemented here.

Structs

EavTestSuite
ExampleContentAddressableStorage

some struct to show an example ContentAddressableStorage implementation this is a thread-safe wrapper around the non-thread-safe implementation below @see ExampleContentAddressableStorageActor

ExampleContentAddressableStorageContent

Not thread-safe CAS implementation with a HashMap

StorageTestSuite

Enums

ExampleLink

Traits

ContentAddressableStorage

content addressable store (CAS) implements storage in memory or persistently anything implementing AddressableContent can be added and fetched by address CAS is append only

Functions

test_content_addressable_storage