redis-info-parser
v1.1.0
Published
redis info command parser
Downloads
9
Readme
redis-info-parser
Redis info string parser
install
npm install redis-info-parser
Usage
// sample.mjs
import ioredis from 'ioredis';
import getRedisInfo from 'redis-info-parser';
const redis = new ioredis(6379, 'localhost');
const infoStr = await redis.info();
const info = getRedisInfo(infoStr);
console.log(info.Keyspace);
redis.disconnect();