/usr/share/doc/ruby-redis-rack/README.md is in ruby-redis-rack 2.0.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | # Redis session store for Rack
__`redis-rack`__ provides a Redis-backed session store for __Rack__.
See the main [redis-store readme] for general guidelines.
**NOTE:** This is not [redis-rack-cache][], the library for using Redis
as a backend store for the `Rack::Cache` HTTP cache. All this gem does
is store the Rack session within Redis.
[![Build Status](https://secure.travis-ci.org/redis-store/redis-rack.png?branch=master)](http://travis-ci.org/redis-store/redis-rack?branch=master)
[![Code Climate](https://codeclimate.com/github/redis-store/redis-store.png)](https://codeclimate.com/github/redis-store/redis-rack)
[![Gem Version](https://badge.fury.io/rb/redis-rack.png)](http://badge.fury.io/rb/redis-rack)
## Installation
Install with Bundler by adding the following to Gemfile:
```ruby
gem 'redis-rack'
```
Then, run:
```shell
$ bundle install
```
Or, you can install it manually using RubyGems:
```shell
$ gem install redis-rack
```
## Usage
If you are using redis-store with Rails, consider using the [redis-rails gem](https://github.com/redis-store/redis-rails) instead. For standalone usage:
```ruby
# config.ru
require 'rack'
require 'rack/session/redis'
use Rack::Session::Redis
```
## Development
To install this gem for development purposes:
```shell
$ gem install bundler # note: you don't need to do this if you already have it installed
$ git clone git://github.com/redis-store/redis-rack.git
$ cd redis-rack
$ bundle install
```
## Running tests
To run tests:
```shell
$ bundle exec rake
```
If you are on **Snow Leopard** you have to run the following command to
build this software:
```shell
$ env ARCHFLAGS="-arch x86_64" bundle exec rake
```
## Copyright
2009 - 2013 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
[redis-rack-cache]: https://github.com/redis-store/redis-rack-cache
[redis-store readme]: https://github.com/redis-store/redis-store
|