read randomly from leveldb
var levelup =var lr =
Object passed to Transform stream constructor.
dbThe mandatory LevelUP instance
errorIfNotFoundEmit error if key is not found
fillCacheFill LevelDB's LRU-cache
level-random exports a sole function that returns a Transform stream which transforms keys to values.
var lr =
At large, of course, we leverage the lexicographical sort order of LevelDB keys (to stream ranges), occasionally though we encounter the oddball use case which requires to read randomly from the store. To read a bunch of unsorted values for random keys this module might be useful.
With npm do:
$ npm install level-random