<commit_before>RedisRateLimiter
==================

[![Build Status](https://travis-ci.org/seanxiesx/redis_rate_limiter.png)](https://travis-ci.org/seanxiesx/redis_rate_limiter)
[![Coverage Status](https://coveralls.io/repos/seanxiesx/redis_rate_limiter/badge.png)](https://coveralls.io/r/seanxiesx/redis_rate_limiter)

Redis-backed rate limiter

Usage
-----

Initialize with preferred limit for a given interval. For example, to rate limit an action 100 times a minute:

    rl = RedisRateLimiter.new("messages", :limit => 100, :interval => 60)

Add to subject's count:
<commit_msg>update incorrect usage instructions<commit_after>RedisRateLimiter
==================

[![Build Status](https://travis-ci.org/seanxiesx/redis_rate_limiter.png)](https://travis-ci.org/seanxiesx/redis_rate_limiter)
[![Coverage Status](https://coveralls.io/repos/seanxiesx/redis_rate_limiter/badge.png)](https://coveralls.io/r/seanxiesx/redis_rate_limiter)

Redis-backed rate limiter

Usage
-----

Initialize with preferred limit for a given interval. For example, to rate limit an action 100 times a minute:

    redis = Redis.new
    rl = RedisRateLimiter.new("messages", redis, :limit => 100, :interval => 60)

Add to subject's count:

{'fraction_non_alphanumeric': 0.15858668857847166, 'fraction_numerical': 0.01314708299096138, 'mean_word_length': 5.444444444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 8, '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': '6450026', 'n_tokens_mistral': 448, 'n_tokens_neox': 419, 'n_words': 82}