<commit_before>donot-cache-redis
=================

[![Build Status](https://travis-ci.org/donotjs/donot-cache-redis.svg?branch=master)](https://travis-ci.org/donotjs/donot-cache-redis)

Redis cache engine for [donot](https://github.com/donotjs/donot).

# How to Use

Usage:

    redisCache()
    redisCache(port)
    redisCache(port, host)

`port` defaults to 6379 and host to `127.0.0.1`.

## Example

    var http = require('http'),
        donot = require('donot'),
        redisCache = require('donot-cache-redis');

    var server = http.createServer(donot(__dirname + '/public', {
        cache: redisCache(6379, '127.0.0.1')
    }));

    server.listen(8000);

> Remark. It does not make sense to use caching without template engine plug-ins - as only template renderings are cached. See [donot](https://github.com/donotjs/donot) for available template plug-ins.

# License

MIT<commit_msg>Updated documentation.<commit_after>donot-cache-redis
=================

[![Build Status](https://travis-ci.org/donotjs/donot-cache-redis.svg?branch=master)](https://travis-ci.org/donotjs/donot-cache-redis)

Redis cache engine for [donot](https://github.com/donotjs/donot).

# How to Use

Usage:

    new RedisCache()
    new RedisCache(port)
    new RedisCache(port, host)

`port` defaults to 6379 and host to `127.0.0.1`.

## Example

    var http = require('http'),
        donot = require('donot'),
        RedisCache = require('donot-cache-redis');

    var server = http.createServer(donot(__dirname + '/public', {
        cache: new RedisCache(6379, '127.0.0.1')
    }));

    server.listen(8000);

> Remark. It does not make sense to use caching without one or more engine plug-ins - as only engine's output is cached. See [donot](https://github.com/donotjs/donot) for available engine plug-ins.

# License

MIT
{'fraction_non_alphanumeric': 0.16290588882773804, 'fraction_numerical': 0.026417171161254815, 'mean_word_length': 3.6259541984732824, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6103683', 'n_tokens_mistral': 649, 'n_tokens_neox': 613, 'n_words': 140}