find_cache 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGE-LOG CHANGED
@@ -1,3 +1,6 @@
1
+ version 0.1.4
2
+ # cache key bug fix
3
+
1
4
  version 0.1.3
2
5
  # dependency updates to make it usable for all activerecord >3.0.0
3
6
 
data/README.rdoc CHANGED
@@ -88,10 +88,10 @@ UserDetail (`belongs_to :user`) ->
88
88
  ## Notes
89
89
 
90
90
  If your worker thread does not kill itself after execution you should clean the find_cache_store manually. It can be done simple in ApplicationController of your rails app adding this method as after_filter
91
- after_filter :clean_find_cache_store
91
+ after_filter :clear_find_cache_store
92
92
 
93
- def clean_find_cache_store
94
- FindCache::KeyGen.clean_global_cache
93
+ def clear_find_cache_store
94
+ FindCache::KeyGen.clear_find_cache_store
95
95
  end
96
96
 
97
97
  Tested with dalli (https://github.com/mperham/dalli).
@@ -20,9 +20,9 @@ module FindCache
20
20
  )
21
21
  end
22
22
 
23
- def self.clean_global_cache
24
- $find_cache_store.delete(CacheKeyGen.global_cache_key)
25
- CacheKeyGen.global_cache_key(true)
23
+ def self.clear_find_cache_store
24
+ $find_cache_store.delete(KeyGen.global_cache_key)
25
+ KeyGen.global_cache_key(true)
26
26
  end
27
27
  end
28
28
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module FindCache
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: find_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: