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 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'
@@ -31,7 +31,8 @@ module ActiveSupport
31
31
  item = nil
32
32
 
33
33
  with_namespace(key, options) do |cache, k|
34
- item = cache.get(k).value
34
+ item = cache.get(k)
35
+ item = item.value unless item.nil?
35
36
  end
36
37
 
37
38
  deserialize_entry(item)
@@ -1,3 +1,3 @@
1
1
  module IronCache
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: