<commit_before># Redis Cache

![Build status](https://travis-ci.org/naroga/redis-cache.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/naroga/redis-cache/badge.svg?branch=master)](https://coveralls.io/github/naroga/redis-cache?branch=master)

This is a simple Redis driver that implements PSR-16.

## Installation

Install using composer:

    $ composer require naroga/redis-cache
   
That's it.

`naroga/redis-cache` adheres to [SemVer](http://semver.org/).

## Usage

`naroga/redis-cache` should be constructed with a `predis/predis` client.

You can check [Predis' documentation here](https://github.com/nrk/predis#connecting-to-redis).

```php
<?php

require_once "vendor/autoload.php";
<commit_msg>Fixes link on build badge<commit_after># Redis Cache

[![Build status](https://travis-ci.org/naroga/redis-cache.svg?branch=master)]((https://travis-ci.org/naroga/redis-cache)) [![Coverage Status](https://coveralls.io/repos/github/naroga/redis-cache/badge.svg?branch=master)](https://coveralls.io/github/naroga/redis-cache?branch=master)]

This is a simple Redis driver that implements PSR-16.

## Installation

Install using composer:

    $ composer require naroga/redis-cache
   
That's it.

`naroga/redis-cache` adheres to [SemVer](http://semver.org/).

## Usage

`naroga/redis-cache` should be constructed with a `predis/predis` client.

You can check [Predis' documentation here](https://github.com/nrk/predis#connecting-to-redis).

```php
<?php

require_once "vendor/autoload.php";

{'fraction_non_alphanumeric': 0.15622940013183917, 'fraction_numerical': 0.0026367831245880024, 'mean_word_length': 4.9763779527559056, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 9, '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': '1386160', 'n_tokens_mistral': 546, 'n_tokens_neox': 529, 'n_words': 100}