multi_cache-rails 4.2.1 → 4.2.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -2
  3. data/lib/multi_cache/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3f1eb9081c8f8bdf429caf994ce94179e18e0a1
4
- data.tar.gz: d348910aea22c4a7da09dca2e539a5bf7aeab1cd
3
+ metadata.gz: b9a50e9a74f5d7fc98c82445092674bba4dcbc3b
4
+ data.tar.gz: bee6530e0ad8ce1d9b10ee2547aa16f685d5ddcd
5
5
  SHA512:
6
- metadata.gz: 5275b0baf5b1be3a04f50fbd3a9d7d17e6fefd51839c8d3b16daf1493fe697e41217de3a54c6b2b62fcf00da24e28308c38a30c2815db1081daccb66414637c6
7
- data.tar.gz: 0fe1983ec05e7489cd8d20bf621391526c2bdd5bc64daaeea739f17db797ca502bd8acbdbb7bdd82a1d67e2beae202074fb47aaf3df96355ad0de75fe9528b62
6
+ metadata.gz: 707b37a6662f4306b749550651f8f39344009785c790d602e0357963feb5fc027654759c855d2d7e3876cc816eb0265b713faa911c897e94d3a504232f3aa2be
7
+ data.tar.gz: 0674c29eb30c0b2b0e74139ff0799e7bd6aeb7abe6e2047c03f03ac9bc24f3478804a710adaf70aee77c9c7b318e6fc39d3d1af93457db69efe10b291cedc34c
data/README.md CHANGED
@@ -19,11 +19,20 @@ Or install it yourself as:
19
19
 
20
20
  $ gem install multi_cache-rails
21
21
 
22
+
23
+ And then add "require" on 'project_root/config/application.rb'
24
+
25
+ ```ruby
26
+ require 'rails/all'
27
+ require 'multi_cache'
28
+
29
+ ```
30
+
22
31
  ## Usage
23
32
 
24
33
  On `Application.configure` , it's like `project_root/config/emvironments/production.rb`
25
34
 
26
- ```
35
+ ```ruby
27
36
  YourProject::Application.configure do
28
37
 
29
38
  config.cache_store = :dalli_store, 'localhost', { :namespace => 'Fril', :compress => true }
@@ -35,7 +44,7 @@ end
35
44
  ```
36
45
 
37
46
  Then, In your project, you can use the caches like below,
38
- ```
47
+ ```ruby
39
48
  Rails.cache.read("something") # fetch cached object from :dalli_store
40
49
  Rails.cache(:secondary).read("something") # fetch cached object from :memory_store
41
50
  ```
@@ -1,5 +1,5 @@
1
1
  module MultiCache
2
2
  module Rails
3
- VERSION = '4.2.1'
3
+ VERSION = '4.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_cache-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Uesugi