<commit_before># RigidDB

A promise based node module for saving searchable plain JavaScript objects to Redis. API methods are executed as atomic Lua transactions to avoid data corruption. Inserted data
is type checked against a predefined schema.

## Installation

`npm install --save rigiddb`

## Status:

[![Build Status](https://secure.travis-ci.org/ilkkao/rigidDB.png)](http://travis-ci.org/ilkkao/rigidDB)

[![Coverage Status](https://coveralls.io/repos/ilkkao/rigidDB/badge.svg?branch=master&service=github)](https://coveralls.io/github/ilkkao/rigidDB?branch=master)

## Example

```javascript
const RigidDB = require('rigiddb');

let store = new RigidDB('mydb');
<commit_msg>Optimize README<commit_after># RigidDB

[![Build Status](https://secure.travis-ci.org/ilkkao/rigidDB.png)](http://travis-ci.org/ilkkao/rigidDB) [![Coverage Status](https://coveralls.io/repos/ilkkao/rigidDB/badge.svg?branch=master&service=github)](https://coveralls.io/github/ilkkao/rigidDB?branch=master)


A promise based node module for saving searchable plain JavaScript objects to Redis. API methods are executed as atomic Lua transactions to avoid data corruption. Inserted data
is type checked against a predefined schema.

## Installation

`npm install --save rigiddb`

## Example

```javascript
const RigidDB = require('rigiddb');

let store = new RigidDB('mydb');

{'fraction_non_alphanumeric': 0.1290560471976401, 'fraction_numerical': 0.0, 'mean_word_length': 5.684729064039409, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4364100', 'n_tokens_mistral': 457, 'n_tokens_neox': 438, 'n_words': 110}