@jscpd/redis-store
v4.0.1
Published
redis store for jscpd
Downloads
8
Readme
@jscpd/leveldb-store
!NOT implemented yet
store for jscpd, used redis data store for hashes
Installation
npm install @jscpd/redis-store --save
Usage
import {Tokenizer} from '@jscpd/tokenizer';
import {
Detector,
IOptions,
IClone,
IStore,
ITokenizer
} from '@jscpd/core';
import RedisdbStore from '@jscpd/redis-store';
const options: IOptions = {
minLines: 5,
maxLines: 500,
}
const tokenizer: ITokenizer = new Tokenizer();
const store: IStore = new RedisdbStore();
const detector = new Detector(tokenizer, store, [], options);
License
MIT © Andrey Kucherenko