Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luca Guidi
committed
Dec 29, 2011
1 parent
f91782e
commit fba7b0d
Showing
16 changed files
with
565 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2009 - 2011 Luca Guidi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Redis stores for ActionPack | ||
|
||
__`redis-actionpack`__ provides a full set of stores (*Session*, *HTTP Cache*) for __ActionPack__. It natively supports object marshalling, timeouts, single or multiple nodes and namespaces. | ||
|
||
## Redis Installation | ||
|
||
### Option 1: Homebrew | ||
|
||
MacOS X users should use [Homebrew](https://github.com/mxcl/homebrew) to install Redis: | ||
|
||
brew install redis | ||
|
||
### Option 2: From Source | ||
|
||
Download and install Redis from [http://redis.io](http://redis.io/) | ||
|
||
wget http://redis.googlecode.com/files/redis-2.4.5.tar.gz | ||
tar -zxf redis-2.4.5.tar.gz | ||
mv redis-2.4.5 redis | ||
cd redis | ||
make | ||
|
||
## Usage | ||
|
||
# Gemfile | ||
gem 'redis-actionpack' | ||
|
||
### Session Store: Ruby on Rails | ||
|
||
# config/initializers/session_store.rb | ||
MyApplication::Application.config.session_store :redis_store | ||
|
||
### Session Store: Standalone | ||
|
||
ActionController::Base.cache_store = ActionDispatch::Session::RedisSessionStore.new | ||
|
||
### HTTP Cache | ||
|
||
# config.ru | ||
require 'rack' | ||
require 'rack/cache' | ||
require 'redis-rack-cache' | ||
|
||
use Rack::Cache, | ||
:metastore => 'redis://localhost:6379/0/metastore', | ||
:entitystore => 'redis://localhost:6380/0/entitystore' | ||
|
||
#### Configuration | ||
|
||
For advanced configuration options, please check the [Redis Store Wiki](https://github.com/jodosha/redis-store/wiki). | ||
|
||
## Running tests | ||
|
||
git clone git://github.com/jodosha/redis-store.git | ||
cd redis-store/redis-actionpack | ||
gem install bundler --pre # required version: 1.1.rc | ||
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](http://lucaguidi.com), released under the MIT license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2009 - 2011 Luca Guidi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Redis stores for ActiveSupport | ||
|
||
__`redis-activesupport`__ provides a full set of stores (*Cache*) for __ActiveSupport__. It natively supports object marshalling, timeouts, single or multiple nodes and namespaces. | ||
|
||
## Redis Installation | ||
|
||
### Option 1: Homebrew | ||
|
||
MacOS X users should use [Homebrew](https://github.com/mxcl/homebrew) to install Redis: | ||
|
||
brew install redis | ||
|
||
### Option 2: From Source | ||
|
||
Download and install Redis from [http://redis.io](http://redis.io/) | ||
|
||
wget http://redis.googlecode.com/files/redis-2.4.5.tar.gz | ||
tar -zxf redis-2.4.5.tar.gz | ||
mv redis-2.4.5 redis | ||
cd redis | ||
make | ||
|
||
## Usage | ||
|
||
# Gemfile | ||
gem 'redis-activesupport' | ||
|
||
### Cache Store: Ruby on Rails | ||
|
||
# config/environments/production.rb | ||
config.cache_store = :redis_store # { ... optional configuration ... } | ||
|
||
### Cache Store: Standalone | ||
|
||
ActiveSupport::Cache.lookup_store :redis_store # { ... optional configuration ... } | ||
|
||
#### Configuration | ||
|
||
For advanced configuration options, please check the [Redis Store Wiki](https://github.com/jodosha/redis-store/wiki). | ||
|
||
## Running tests | ||
|
||
git clone git://github.com/jodosha/redis-store.git | ||
cd redis-store/redis-activesupport | ||
gem install bundler --pre # required version: 1.1.rc | ||
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](http://lucaguidi.com), released under the MIT license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2009 - 2011 Luca Guidi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 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](https://github.com/mxcl/homebrew) to install Redis: | ||
|
||
brew install redis | ||
|
||
### Option 2: From Source | ||
|
||
Download and install Redis from [http://redis.io](http://redis.io/) | ||
|
||
wget http://redis.googlecode.com/files/redis-2.4.5.tar.gz | ||
tar -zxf redis-2.4.5.tar.gz | ||
mv redis-2.4.5 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](https://github.com/jodosha/redis-store/wiki). | ||
|
||
## Running tests | ||
|
||
git clone git://github.com/jodosha/redis-store.git | ||
cd redis-store/redis-i18n | ||
gem install bundler --pre # required version: 1.1.rc | ||
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](http://lucaguidi.com), released under the MIT license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2009 - 2011 Luca Guidi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Redis stores for Rack::Cache | ||
|
||
__`redis-rack-cache`__ provides a Redis backed store for __Rack::Cache__. It natively supports object marshalling, timeouts, single or multiple nodes and namespaces. | ||
|
||
## Redis Installation | ||
|
||
### Option 1: Homebrew | ||
|
||
MacOS X users should use [Homebrew](https://github.com/mxcl/homebrew) to install Redis: | ||
|
||
brew install redis | ||
|
||
### Option 2: From Source | ||
|
||
Download and install Redis from [http://redis.io](http://redis.io/) | ||
|
||
wget http://redis.googlecode.com/files/redis-2.4.5.tar.gz | ||
tar -zxf redis-2.4.5.tar.gz | ||
mv redis-2.4.5 redis | ||
cd redis | ||
make | ||
|
||
## Usage | ||
|
||
# Gemfile | ||
gem 'redis-rack-cache' | ||
|
||
### HTTP Cache Store: | ||
|
||
# config.ru | ||
require 'rack' | ||
require 'rack/cache' | ||
require 'redis-rack-cache' | ||
|
||
use Rack::Cache, | ||
:metastore => 'redis://localhost:6379/0/metastore', | ||
:entitystore => 'redis://localhost:6380/0/entitystore' | ||
|
||
#### Configuration | ||
|
||
For advanced configuration options, please check the [Redis Store Wiki](https://github.com/jodosha/redis-store/wiki). | ||
|
||
## Running tests | ||
|
||
git clone git://github.com/jodosha/redis-store.git | ||
cd redis-store/redis-rack-cache | ||
gem install bundler --pre # required version: 1.1.rc | ||
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](http://lucaguidi.com), released under the MIT license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2009 - 2011 Luca Guidi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Redis stores for Rack | ||
|
||
__`redis-rack`__ provides a Redis backed session store __Rack__. It natively supports object marshalling, timeouts, single or multiple nodes and namespaces. | ||
|
||
## Redis Installation | ||
|
||
### Option 1: Homebrew | ||
|
||
MacOS X users should use [Homebrew](https://github.com/mxcl/homebrew) to install Redis: | ||
|
||
brew install redis | ||
|
||
### Option 2: From Source | ||
|
||
Download and install Redis from [http://redis.io](http://redis.io/) | ||
|
||
wget http://redis.googlecode.com/files/redis-2.4.5.tar.gz | ||
tar -zxf redis-2.4.5.tar.gz | ||
mv redis-2.4.5 redis | ||
cd redis | ||
make | ||
|
||
## Usage | ||
|
||
# Gemfile | ||
gem 'redis-rack' | ||
|
||
### Session Store: | ||
|
||
# config.ru | ||
require 'rack' | ||
require 'rack/session/redis' | ||
|
||
use Rack::Session::Redis | ||
|
||
#### Configuration | ||
|
||
For advanced configuration options, please check the [Redis Store Wiki](https://github.com/jodosha/redis-store/wiki). | ||
|
||
## Running tests | ||
|
||
git clone git://github.com/jodosha/redis-store.git | ||
cd redis-store/redis-rack | ||
gem install bundler --pre # required version: 1.1.rc | ||
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](http://lucaguidi.com), released under the MIT license |
Oops, something went wrong.