level-mutex-batch:确保当时只有一个 leveldb 批处理正在运行

时间:2021-07-13 11:24:31
【文件属性】:
文件名称:level-mutex-batch:确保当时只有一个 leveldb 批处理正在运行
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-13 11:24:31
JavaScript 级别互斥批处理 确保当时只有一个 leveldb 批处理正在运行 npm install level-mutex-batch 用法 var lmbatch = require ( 'level-mutex-batch' ) var batch = lmbatch ( db ) // db is a levelup batch ( [ { type : 'put' , key : 'hello' , value : 'world-1' } ] , function ( ) { ... } ) batch ( [ { type : 'put' , key : 'hello' , value : 'world-2' } ] , function ( ) { ... } ) batch ( [ { type : 'put' , key : 'hello' , value : 'worl
【文件预览】:
level-mutex-batch-master
----test.js(1KB)
----.travis.yml(38B)
----LICENSE(1KB)
----README.md(687B)
----.gitignore(13B)
----index.js(775B)
----package.json(610B)

网友评论