Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (28 sloc) 1.166 kb

Redis stores for I18n

redis-i18n provides a Redis backend for I18n. It natively supports object marshalling, timeouts, single or multiple nodes and namespaces.

Redis Installation

Option 1: Homebrew

MacOS X users should use Homebrew to install Redis:

brew install redis

Option 2: From Source

Download and install Redis from http://redis.io

wget http://redis.googlecode.com/files/redis-2.4.15.tar.gz
tar -zxf redis-2.4.15.tar.gz
mv redis-2.4.15 redis
cd redis
make

Usage

# Gemfile
gem 'redis-i18n'

Backend:

I18n.backend = I18n::Backend::Redis.new

Configuration

For advanced configuration options, please check the Redis Store Wiki.

Running tests

git clone git://github.com/jodosha/redis-store.git
cd redis-store/redis-i18n
gem install bundler
bundle exec rake

If you are on Snow Leopard you have to run env ARCHFLAGS="-arch x86_64" bundle exec rake

Copyright

(c) 2009 - 2011 Luca Guidi - http://lucaguidi.com, released under the MIT license

Jump to Line
Something went wrong with that request. Please try again.