rails_redis_cache 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +22 -1
- data/lib/rails_redis_cache.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -1 +1,22 @@
|
|
1
|
-
|
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
|
+
|
data/lib/rails_redis_cache.rb
CHANGED
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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:
|
29
|
+
hash: 867219037
|
30
30
|
segments:
|
31
31
|
- 3
|
32
32
|
- 0
|