1.0.0 • Published 11 years ago

redis_scan v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
11 years ago

Redis Scan

Scan keys and return result into a list.

Installation

$> npm install git@github.com:tuxlinuxien/redis_scan.git

Usage

redisScan(<redis client>, '<selector>', <chunck size>, <callback>)

or

redisScan(<redis client>, '<selector>', <callback>)

Default chunck size set to 1000.

Example

var redis = require('redis');
var redisScan = require('redis_scan');

var redisClient = redis.createClient(REDIS_PORT, REDIS_HOST);

redisScan(redisClient, 'keys_*', function (error, result) {
    if (error)
        return console.log(error);
    console.log(result);
});
1.0.0

11 years ago