iron_cache 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +10 -0
- data/lib/active_support/cache/iron_cache_store.rb +2 -1
- data/lib/iron_cache/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -50,3 +50,13 @@ Cache Information
|
|
50
50
|
cache = @iron_cache.cache("my_cache")
|
51
51
|
puts "name: #{cache.name}"
|
52
52
|
|
53
|
+
Using As Rails Store
|
54
|
+
====================
|
55
|
+
|
56
|
+
You can use IronCache as any other rails store. Put iron.json into your project's config dir, add iron_cache to Gemfile and you are ready to go.
|
57
|
+
|
58
|
+
config.cache_store = :iron_cache_store
|
59
|
+
|
60
|
+
Alternatively, you can supply project_id and token in code.
|
61
|
+
|
62
|
+
config.cache_store = :iron_cache_store, :project_id => 'XXX', :token => 'YYY'
|
data/lib/iron_cache/version.rb
CHANGED