<commit_before>node-redis-eval
===============

A small package to help calling lua scripts in Redis. It manages caching the script in the redis instance and caches the sha1 hash locally; also, it checks to see if the redis has already cached this script before sending it.


## Usage

Install:

```
npm install redis-eval --save
```

In Code:

```javascript

var redis = require('redis')
  client = redis.createClient(),
  reval = require('redis-eval'),
  script = __dirname + '/myluascript.lua';

reval(client, script, ['key1', 'key2'], ['arg1', 'arg2'], callback);
```

## License

See [LICENSE](https://github.com/yanatan16/node-redis-eval)
<commit_msg>add travis build status<commit_after>node-redis-eval  [![Build Status][1]][2]
===============

A small package to help calling lua scripts in Redis. It manages caching the script in the redis instance and caches the sha1 hash locally; also, it checks to see if the redis has already cached this script before sending it.


## Usage

Install:

```
npm install redis-eval --save
```

In Code:

```javascript

var redis = require('redis')
  client = redis.createClient(),
  reval = require('redis-eval'),
  script = __dirname + '/myluascript.lua';

reval(client, script, ['key1', 'key2'], ['arg1', 'arg2'], callback);
```

## License

See [LICENSE](https://github.com/yanatan16/node-redis-eval)



[1]: https://travis-ci.org/yanatan16/node-redis-eval.png?branch=master
[2]: http://travis-ci.org/yanatan16/node-redis-eval
{'fraction_non_alphanumeric': 0.1628222523744912, 'fraction_numerical': 0.014925373134328358, 'mean_word_length': 4.587121212121212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '6826951', 'n_tokens_mistral': 502, 'n_tokens_neox': 479, 'n_words': 151}