FlashStore is a high-performance Key-Value Persistent Local Database using ES6 Map's API (Async & Sync), Powered by LevelDB/RocksDB/SQLite and TypeScript.
in flashStore.values, {lte: 10} result is 3, while {gte: 10} result is 5
snip as follows:
import { FlashStore } from '../src/flash-store'
async function main() {
const flashStore = new FlashStore('falshstore.workdir')
console.log('all values')
for await (const value of flashStore.values()) {
console.log(value)
}
console.log('value gte 10')
for await (const value of flashStore.values({gte: 10})) {
console.log(value)
}
console.log('value lte 10')
for await (const value of flashStore.values({lte: 10})) {
console.log(value)
}
}
main()
in
flashStore.values
,{lte: 10}
result is 3, while{gte: 10}
result is 5snip as follows:
output as follows: