<commit_before>h1. Redis store for Rails

h2. Installation

Download and install Redis from http://code.google.com/p/redis/

  wget http://redis.googlecode.com/files/redis-0.091.tar.gz
  tar -zxvf redis-0.091.tar.gz
  cd redis-0.091
  make

Install the gems

  sudo gem install ezmobius-redis-rb -s http://gems.github.com
  sudo gem install jodosha-redis-rails -s http://gems.github.com

h2. How to use with Rails

In your configuration files:

  config.gem "jodosha-redis-rails", :source => "http://gems.github.com", :lib => "redis-rails"
  require "redis-rails" # HACK Rails tries to instantiate cache first, then load configured gems
  config.cache_store = :redis_store

Start Redis server, then your application.

h2. Copyright

(c) 2009 <NAME> - http://lucaguidi.com, released under the MIT license<commit_msg>Updated README with Merb instructions<commit_after>h1. Redis cache and session stores for Ruby web frameworks

h2. Installation

Download and install Redis from http://code.google.com/p/redis/

  wget http://redis.googlecode.com/files/redis-0.091.tar.gz
  tar -zxvf redis-0.091.tar.gz
  cd redis-0.091
  make

Install the gems

  sudo gem install ezmobius-redis-rb -s http://gems.github.com
  sudo gem install jodosha-redis-rails -s http://gems.github.com

h2. How to use with Rails

In your configuration files:

  config.gem "jodosha-redis-rails", :source => "http://gems.github.com", :lib => "redis-rails"
  require "redis-rails" # HACK Rails tries to instantiate cache first, then load configured gems
  config.cache_store = :redis_store

h2. How to use with Merb

  dependency "merb-cache" do
    Merb::Cache.setup do
      register(:redis, RedisStore, :servers => ["127.0.0.1:6379"])
    end
  end

h2. Copyright

(c) 2009 <NAME> - http://lucaguidi.com, released under the MIT license
{'fraction_non_alphanumeric': 0.1146814404432133, 'fraction_numerical': 0.028254847645429362, 'mean_word_length': 3.583756345177665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2302946', 'n_tokens_mistral': 690, 'n_tokens_neox': 627, 'n_words': 187}