merb-cache 1.0.3 → 1.0.4
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.
- data/README +12 -6
- 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
|
-
|
20
|
-
|
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
|
-
|
25
|
-
|
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
|
-
|
30
|
-
|
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.
|
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-
|
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.
|
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
|