redis-collections
Version:
Collection based views for Redis
18 lines (13 loc) • 497 B
JavaScript
const config={
"redis": {
"path": "/tmp/redis.sock",
"db": 10,
"password": "TuRMAUxvaR7)pWebwcr2b6Q3}EVCp7cqnBH+xhTPYpmsRs8Dpk3Tdys8H4CW@tgoyLmh6DMoF)LXRjUPy=cvb36DEgJNtcqiQBMAR96}VxbcXEgikDJuVZftVMC79p8AbaoEZGtnxpcXH=*kuEQuN6"
}
}
const Redis = require('redis')
const client = Redis.createClient(config)
const {Store} = require('..')
const store=new Store(client)
const run=()=>store.promiseTypeScan(1, (keyTypes) => { console.log("values=", keyTypes)})
run()