<commit_before>cluster_wrapper - a node.js redis cluster wrapper for node_redis
============================
##Dependencies
[node_redis](https://github.com/mranney/node_redis)


##Usage
```js
var config = [
    {port:30001, slots:'0~3276'},
    {port:30002, slots:'3277~6553'},
    {port:30003, slots:'6554~9829'},
    {port:30004, slots:'9830~13106'},
    {port:30005, slots:'13106~16383'} 
    ];
var cluster = require('cluster_wrapper');
var redis = cluster.createClient(config);

redis.set('msg','1234',function(err,reply){
  redis.get('msg',function(err,reply){
    console.log(reply)
  });
});
```
Works the same as [node_redis](https://github.com/mranney/node_redis),Handling 'MOVED'/'ASK' internal in this lib.

##Note
This repo is under construction and 'cause redis 3.0 is unstable,so this repo is unstable too.<commit_msg>readme.md format<commit_after># cluster_wrapper  
####a node.js redis cluster wrapper for node_redis

###Dependencies
[node_redis](https://github.com/mranney/node_redis)

###Usage
```js
var config = [
    {port:30001, slots:'0~3276'},
    {port:30002, slots:'3277~6553'},
    {port:30003, slots:'6554~9829'},
    {port:30004, slots:'9830~13106'},
    {port:30005, slots:'13106~16383'} 
    ];
var cluster = require('cluster_wrapper');
var redis = cluster.createClient(config);

redis.set('msg','1234',function(err,reply){
  redis.get('msg',function(err,reply){
    console.log(reply)
  });
});
```
Works the same as [node_redis](https://github.com/mranney/node_redis), handling 'MOVED'/'ASK' internal in this lib.

###Note
This repo is under construction and 'cause redis 3.0 is unstable,so this repo is unstable too.
{'fraction_non_alphanumeric': 0.18787878787878787, 'fraction_numerical': 0.08606060606060606, 'mean_word_length': 5.44921875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6900022', 'n_tokens_mistral': 669, 'n_tokens_neox': 571, 'n_words': 122}