rails_redis_cache 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +22 -1
  2. data/lib/rails_redis_cache.rb +1 -1
  3. metadata +4 -4
data/README.rdoc CHANGED
@@ -1 +1,22 @@
1
- redis cache for rails3
1
+ == About
2
+
3
+ Cache store implementation for Rails 3 using the key value store Redis.
4
+
5
+ == Usage
6
+
7
+ In the environment.rb or environments-files write:
8
+
9
+ ActionController::Base.cache_store = ActiveSupport::Cache::RailsRedisCache.new(:url => ENV['RAILS_REDIS_CACHE_URL'])
10
+
11
+ ... or ...
12
+
13
+ config.cache_store = ActiveSupport::Cache::RailsRedisCache.new(:url => ENV['RAILS_REDIS_CACHE_URL'])
14
+
15
+ == Installing Redis
16
+
17
+ Using a local Redis server for testing is simple:
18
+
19
+ brew install redis
20
+ redis-server
21
+
22
+
@@ -13,7 +13,7 @@ module ActiveSupport
13
13
  attr_reader :redis
14
14
 
15
15
  def initialize(options={})
16
- super()
16
+ super(options)
17
17
  @redis = Redis.connect(options)
18
18
  end
19
19
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_redis_cache
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Peter Schr\xC3\xB6der"
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: -1442725791
29
+ hash: 867219037
30
30
  segments:
31
31
  - 3
32
32
  - 0