Skip to main content

put_object

Function put_object 

Source
pub fn put_object(
    fs: &impl Fs,
    paths: &StorePaths,
    doc_id: &str,
    content: &[u8],
) -> Result<String, SessionError>
Expand description

Store content, returning its hash address. Idempotent / dedup’d: if the object already exists it is NOT rewritten.