replicable-content-addressable-store:在 leveldb 之上用 JavaScript 编写的可复制内容可寻址存储

时间:2024-07-06 04:50:16
【文件属性】:

文件名称:replicable-content-addressable-store:在 leveldb 之上用 JavaScript 编写的可复制内容可寻址存储

文件大小:4KB

文件格式:ZIP

更新时间:2024-07-06 04:50:16

JavaScript

可复制内容可寻址存储 建立在 leveldb 之上的可复制内容可寻址存储。 用法 var rcas = require ( 'replicable-content-addressable-store' ) ; var store = rcas ( db , { id : 'some-node-id' } ) ; // db is a levelup instance store . put ( 'hello world' , function ( err , key ) { } ) ; // to replicate var s1 = store . syncStream ( ) ; var s2 = otherStore . syncStream ( ) ; s1 . pipe ( s2 ) . pipe ( s1 ) ; 应用程序接口 var store = rcas(db, [op


【文件预览】:
replicable-content-addressable-store-master
----index.js(3KB)
----test.js(2KB)
----package.json(524B)
----README.md(1KB)
----LICENSE.txt(1KB)

网友评论