merb-cache 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README +12 -6
  2. metadata +3 -3
data/README CHANGED
@@ -16,18 +16,24 @@ environment if you need to).
16
16
 
17
17
  # create a fundamental memcache store named :memcached for localhost
18
18
 
19
- Merb::Cache.setup do
20
- register(:memcached, MemcachedStore, :namespace => "my_app", :servers => ["127.0.0.1:11211"])
19
+ dependency "merb-cache" do
20
+ Merb::Cache.setup do
21
+ register(:memcached, MemcachedStore, :namespace => "my_app", :servers => ["127.0.0.1:11211"])
22
+ end
21
23
  end
22
24
 
23
25
  # a default FileStore
24
- Merb::Cache.setup do
25
- register(FileStore)
26
+ dependency "merb-cache" do
27
+ Merb::Cache.setup do
28
+ register(FileStore)
29
+ end
26
30
  end
27
31
 
28
32
  # another FileStore
29
- Merb::Cache.setup do
30
- register(:tmp_cache, FileStore, :dir => "/tmp")
33
+ dependency "merb-cache" do
34
+ Merb::Cache.setup do
35
+ register(:tmp_cache, FileStore, :dir => "/tmp")
36
+ end
31
37
  end
32
38
 
33
39
  Now lets see how we can use stores in the application:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Burkert
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-25 00:00:00 -08:00
12
+ date: 2008-12-08 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.3
23
+ version: 1.0.4
24
24
  version:
25
25
  description: Merb plugin that provides caching (page, action, fragment, object)
26
26
  email: ben@benburkert.com