cachecataz 0.1.0 → 0.1.1

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 +21 -0
  2. data/VERSION +1 -1
  3. metadata +3 -3
data/README.rdoc CHANGED
@@ -29,6 +29,27 @@ Include it and define your scopes:
29
29
  cache_scope :name, [:user_id]
30
30
  end
31
31
 
32
+ Enable it:
33
+
34
+ # ** production.rb **
35
+ Name::Application.configure do
36
+ #....... bunch of stuff
37
+
38
+ config.action_controller.perform_caching = true
39
+ config.cache_store = :mem_cache_store, 'localhost:11211'
40
+
41
+ # .... more stuff
42
+
43
+ config.after_initialize do
44
+ Cachecataz.enable = true
45
+ Cachecataz.provider = Rails.cache
46
+ end
47
+ end
48
+
49
+
50
+ Cachecataz is disabled by default. If you use it outside of Rails you need to enable it through the configuration options. Inside Rails this is done
51
+ in your environment files under your Rails.root/config/environments/ dir.
52
+
32
53
  A cache_scope is the mechanism to create a unique scope for a namespace. The namespace key will be comprised of the cache_scope name
33
54
  (in this example "name") and the runtime state of any value passed in the Array of symbols that make up a unique scope.
34
55
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cachecataz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brandon Dewitt