readbitmap

1.0.1 • Public • Published

readBitmap

read bitmap from redis


Quick Start

Install

npm i --save readbitmap

Basic Usage

const readBitmap = require('readbitmap')
readBitmap('testBit').then((res) => {
  console.log(res)
})

// [0, 12, 13, 100]

// or connect remote redis server

const readBitmap = require('readbitmap')
readBitmap('testBit', { host: 'redis_host', port: 3306 }).then((res) => {
  console.log(res)
})

// or read buffer
const readBitmap = require('readbitmap')
readBitmap(Buffer.from('0123')).then((res) => {
  console.log(res)
})

Params

The first param is redis bitmap key or buffer, redis config can`t work if you use buffer.

The second param is redis config, you can see ioredis to get more infomation to connect redis.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i readbitmap

Weekly Downloads

4

Version

1.0.1

License

ISC

Unpacked Size

3.32 kB

Total Files

4

Last publish

Collaborators

  • fghpdf