<commit_before># EasyRedis

Helper methods for activerecord objects to use redis easily
Don't worry about the type casting. EasyRedis does type conversions!

## Installation

Add this line to your application's Gemfile:

    gem 'easy_redis'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install easy_redis

## Usage

Create a file under initializers directory and set a redis client like above:
    
    EasyRedis::Redis.configure(:redis => Redis.new)

Examples:

    u = User.find(1)
    u.r_set("key", "value")
    u.redis_set("key", "value")
    u.redis_set_key("value")

    u.r_get("key")
    u.redis_get("key")
    u.redis_get_key

    u.r_del("key")
    u.redis_del("key")
    u.redis_del_key

    u.r_update("key", "value")
    u.redis_update("key", "value")
    u.redis_update_key("value")

## Contributing<commit_msg>wrong word in the readme :)<commit_after># EasyRedis

Helper methods for activerecord objects to use redis easily
Don't worry about the type casting. EasyRedis does type conversions!

## Installation

Add this line to your application's Gemfile:

    gem 'easy_redis'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install easy_redis

## Usage

Create a file under initializers directory and set a redis client like below:
    
    EasyRedis::Redis.configure(:redis => Redis.new)

Examples:

    u = User.find(1)
    u.r_set("key", "value")
    u.redis_set("key", "value")
    u.redis_set_key("value")

    u.r_get("key")
    u.redis_get("key")
    u.redis_get_key

    u.r_del("key")
    u.redis_del("key")
    u.redis_del_key

    u.r_update("key", "value")
    u.redis_update("key", "value")
    u.redis_update_key("value")

## Contributing
{'fraction_non_alphanumeric': 0.1173054587688734, 'fraction_numerical': 0.0011614401858304297, 'mean_word_length': 3.4637305699481864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '6450757', 'n_tokens_mistral': 634, 'n_tokens_neox': 604, 'n_words': 162}