cachetastic 1.2.2 → 1.2.3
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 +10 -2
- data/bin/cachetastic_drb_server +97 -0
- data/doc/classes/Cachetastic/Adapters/Base.html +16 -16
- data/doc/classes/Cachetastic/Adapters/Base.src/M000024.html +9 -5
- data/doc/classes/Cachetastic/Adapters/Base.src/M000025.html +7 -8
- data/doc/classes/Cachetastic/Adapters/Base.src/M000026.html +21 -0
- data/doc/classes/Cachetastic/Adapters/Drb.html +244 -0
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000027.html +22 -0
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000028.html +18 -0
- data/doc/classes/Cachetastic/Adapters/{LocalMemory.src/M000017.html → Drb.src/M000029.html} +4 -4
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000030.html +26 -0
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000031.html +18 -0
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000032.html +25 -0
- data/doc/classes/Cachetastic/Adapters/File.html +30 -30
- data/doc/classes/Cachetastic/Adapters/File.src/{M000026.html → M000033.html} +0 -0
- data/doc/classes/Cachetastic/Adapters/File.src/{M000027.html → M000034.html} +0 -0
- data/doc/classes/Cachetastic/Adapters/File.src/{M000028.html → M000035.html} +0 -0
- data/doc/classes/Cachetastic/Adapters/File.src/{M000029.html → M000036.html} +2 -0
- data/doc/classes/Cachetastic/Adapters/File.src/{M000030.html → M000037.html} +1 -1
- data/doc/classes/Cachetastic/Adapters/File.src/{M000031.html → M000038.html} +1 -1
- data/doc/classes/Cachetastic/Adapters/LocalMemory.html +30 -30
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000018.html +4 -4
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000019.html +3 -3
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000020.html +4 -12
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000021.html +12 -4
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000022.html +4 -11
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000023.html +25 -0
- data/doc/classes/Cachetastic/Adapters/Memcache.html +55 -55
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000007.html +5 -4
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000008.html +4 -4
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000009.html +4 -4
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000010.html +4 -4
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000011.html +4 -4
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000012.html +4 -10
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000013.html +10 -5
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000014.html +5 -6
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000015.html +6 -6
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000016.html +5 -9
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000017.html +24 -0
- data/doc/classes/Cachetastic/Caches/Base/RegisteredCaches.html +5 -5
- data/doc/classes/Cachetastic/Caches/Base/RegisteredCaches.src/{M000043.html → M000053.html} +0 -0
- data/doc/classes/Cachetastic/Caches/Base.html +103 -63
- data/doc/classes/Cachetastic/Caches/Base.src/M000040.html +4 -4
- data/doc/classes/Cachetastic/Caches/Base.src/M000041.html +29 -4
- data/doc/classes/Cachetastic/Caches/Base.src/M000042.html +8 -13
- data/doc/classes/Cachetastic/Caches/Base.src/{M000035.html → M000043.html} +0 -0
- data/doc/classes/Cachetastic/Caches/Base.src/{M000036.html → M000044.html} +0 -0
- data/doc/classes/Cachetastic/Caches/Base.src/{M000037.html → M000045.html} +0 -0
- data/doc/classes/Cachetastic/Caches/Base.src/{M000038.html → M000046.html} +0 -0
- data/doc/classes/Cachetastic/Caches/Base.src/{M000039.html → M000047.html} +0 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000048.html +23 -0
- data/doc/classes/Cachetastic/Caches/Base.src/{M000032.html → M000049.html} +4 -4
- data/doc/classes/Cachetastic/Caches/Base.src/M000050.html +18 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000051.html +18 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000052.html +28 -0
- data/doc/classes/Cachetastic/Caches/RailsSessionCache.html +26 -0
- data/doc/classes/Cachetastic/Caches/RailsSessionCache.src/M000039.html +18 -0
- data/doc/classes/Cachetastic/Connection.html +11 -11
- data/doc/classes/Cachetastic/Connection.src/{M000044.html → M000054.html} +0 -0
- data/doc/classes/Cachetastic/Connection.src/{M000045.html → M000055.html} +0 -0
- data/doc/classes/Cachetastic/Errors/UnsupportedAdapter.html +137 -0
- data/doc/classes/Cachetastic/Errors/UnsupportedAdapter.src/M000006.html +18 -0
- data/doc/classes/Cachetastic/Logger.html +5 -5
- data/doc/classes/Cachetastic/Logger.src/{M000046.html → M000056.html} +0 -0
- data/doc/created.rid +1 -1
- data/doc/files/init_rb.html +18 -2
- data/doc/files/lib/adapters/cachetastic_adapters_base_rb.html +1 -1
- data/doc/files/lib/adapters/cachetastic_adapters_drb_rb.html +115 -0
- data/doc/files/lib/adapters/cachetastic_adapters_file_rb.html +1 -1
- data/doc/files/lib/adapters/cachetastic_adapters_local_memory_rb.html +1 -1
- data/doc/files/lib/caches/cachetastic_caches_base_rb.html +1 -1
- data/doc/files/lib/caches/cachetastic_caches_rails_session_cache_rb.html +1 -1
- data/doc/files/lib/cachetastic_rb.html +21 -3
- data/doc/files/lib/errors/cachetastic_errors_unsupported_adapter_rb.html +101 -0
- data/doc/fr_class_index.html +2 -0
- data/doc/fr_file_index.html +2 -0
- data/doc/fr_method_index.html +51 -41
- data/doc/index.html +1 -1
- data/lib/adapters/cachetastic_adapters_base.rb +1 -1
- data/lib/adapters/cachetastic_adapters_drb.rb +56 -0
- data/lib/cachetastic.rb +1 -0
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +44 -27
- data/doc/classes/Cachetastic/Adapters/Base.src/M000023.html +0 -24
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000006.html +0 -19
- data/doc/classes/Cachetastic/Caches/Base.src/M000033.html +0 -43
- data/doc/classes/Cachetastic/Caches/Base.src/M000034.html +0 -23
- data/init.rb +0 -1
|
@@ -92,8 +92,8 @@ This class caches adapter objects for each cache in the system.
|
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
|
93
93
|
|
|
94
94
|
<div class="name-list">
|
|
95
|
-
<a href="#
|
|
96
|
-
<a href="#
|
|
95
|
+
<a href="#M000055">get</a>
|
|
96
|
+
<a href="#M000054">new</a>
|
|
97
97
|
</div>
|
|
98
98
|
</div>
|
|
99
99
|
|
|
@@ -135,12 +135,12 @@ This class caches adapter objects for each cache in the system.
|
|
|
135
135
|
<div id="methods">
|
|
136
136
|
<h3 class="section-bar">Public Class methods</h3>
|
|
137
137
|
|
|
138
|
-
<div id="method-
|
|
139
|
-
<a name="
|
|
138
|
+
<div id="method-M000054" class="method-detail">
|
|
139
|
+
<a name="M000054"></a>
|
|
140
140
|
|
|
141
141
|
<div class="method-heading">
|
|
142
|
-
<a href="Connection.src/
|
|
143
|
-
onclick="popupCode('Connection.src/
|
|
142
|
+
<a href="Connection.src/M000054.html" target="Code" class="method-signature"
|
|
143
|
+
onclick="popupCode('Connection.src/M000054.html');return false;">
|
|
144
144
|
<span class="method-name">new</span><span class="method-args">()</span>
|
|
145
145
|
</a>
|
|
146
146
|
</div>
|
|
@@ -151,12 +151,12 @@ This class caches adapter objects for each cache in the system.
|
|
|
151
151
|
|
|
152
152
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
153
153
|
|
|
154
|
-
<div id="method-
|
|
155
|
-
<a name="
|
|
154
|
+
<div id="method-M000055" class="method-detail">
|
|
155
|
+
<a name="M000055"></a>
|
|
156
156
|
|
|
157
157
|
<div class="method-heading">
|
|
158
|
-
<a href="Connection.src/
|
|
159
|
-
onclick="popupCode('Connection.src/
|
|
158
|
+
<a href="Connection.src/M000055.html" target="Code" class="method-signature"
|
|
159
|
+
onclick="popupCode('Connection.src/M000055.html');return false;">
|
|
160
160
|
<span class="method-name">get</span><span class="method-args">(name)</span>
|
|
161
161
|
</a>
|
|
162
162
|
</div>
|
|
@@ -166,7 +166,7 @@ This class caches adapter objects for each cache in the system.
|
|
|
166
166
|
Takes the name of the cache, that‘s been methodized, and returns back
|
|
167
167
|
the adapter object associated with the cache. If the adapter object
|
|
168
168
|
doesn‘t exist or if the adapter is no longer valid (adapter.valid?) a
|
|
169
|
-
<a href="Connection.html#
|
|
169
|
+
<a href="Connection.html#M000054">new</a> one is created and returned.
|
|
170
170
|
</p>
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Class: Cachetastic::Errors::UnsupportedAdapter</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Class</strong></td>
|
|
53
|
+
<td class="class-name-in-header">Cachetastic::Errors::UnsupportedAdapter</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../../files/lib/errors/cachetastic_errors_unsupported_adapter_rb.html">
|
|
59
|
+
lib/errors/cachetastic_errors_unsupported_adapter.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
<tr class="top-aligned-row">
|
|
66
|
+
<td><strong>Parent:</strong></td>
|
|
67
|
+
<td>
|
|
68
|
+
Exception
|
|
69
|
+
</td>
|
|
70
|
+
</tr>
|
|
71
|
+
</table>
|
|
72
|
+
</div>
|
|
73
|
+
<!-- banner header -->
|
|
74
|
+
|
|
75
|
+
<div id="bodyContent">
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<div id="contextContent">
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div id="method-list">
|
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
|
87
|
+
|
|
88
|
+
<div class="name-list">
|
|
89
|
+
<a href="#M000006">new</a>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<!-- if includes -->
|
|
97
|
+
|
|
98
|
+
<div id="section">
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
<!-- if method_list -->
|
|
108
|
+
<div id="methods">
|
|
109
|
+
<h3 class="section-bar">Public Class methods</h3>
|
|
110
|
+
|
|
111
|
+
<div id="method-M000006" class="method-detail">
|
|
112
|
+
<a name="M000006"></a>
|
|
113
|
+
|
|
114
|
+
<div class="method-heading">
|
|
115
|
+
<a href="UnsupportedAdapter.src/M000006.html" target="Code" class="method-signature"
|
|
116
|
+
onclick="popupCode('UnsupportedAdapter.src/M000006.html');return false;">
|
|
117
|
+
<span class="method-name">new</span><span class="method-args">(cache_name, adapter)</span>
|
|
118
|
+
</a>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<div class="method-description">
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
<div id="validator-badges">
|
|
133
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
</body>
|
|
137
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>new (Cachetastic::Errors::UnsupportedAdapter)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/errors/cachetastic_errors_unsupported_adapter.rb, line 3</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">cache_name</span>, <span class="ruby-identifier">adapter</span>)
|
|
15
|
+
<span class="ruby-keyword kw">super</span>(<span class="ruby-node">"#{cache_name} does not support the use of the #{adapter} adapter!"</span>)
|
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -92,7 +92,7 @@ This class handles logging for the caches and their adapters.
|
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
|
93
93
|
|
|
94
94
|
<div class="name-list">
|
|
95
|
-
<a href="#
|
|
95
|
+
<a href="#M000056">new</a>
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
98
98
|
|
|
@@ -145,12 +145,12 @@ This class handles logging for the caches and their adapters.
|
|
|
145
145
|
<div id="methods">
|
|
146
146
|
<h3 class="section-bar">Public Class methods</h3>
|
|
147
147
|
|
|
148
|
-
<div id="method-
|
|
149
|
-
<a name="
|
|
148
|
+
<div id="method-M000056" class="method-detail">
|
|
149
|
+
<a name="M000056"></a>
|
|
150
150
|
|
|
151
151
|
<div class="method-heading">
|
|
152
|
-
<a href="Logger.src/
|
|
153
|
-
onclick="popupCode('Logger.src/
|
|
152
|
+
<a href="Logger.src/M000056.html" target="Code" class="method-signature"
|
|
153
|
+
onclick="popupCode('Logger.src/M000056.html');return false;">
|
|
154
154
|
<span class="method-name">new</span><span class="method-args">(options, cache_name)</span>
|
|
155
155
|
</a>
|
|
156
156
|
</div>
|
|
File without changes
|
data/doc/created.rid
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Thu, 31 Jan 2008 14:38:01 -0500
|
data/doc/files/init_rb.html
CHANGED
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
debug: true # true | false (default: false)
|
|
90
90
|
# this is the type of file store to be used for this cache.
|
|
91
91
|
# more adapters can be developed and plugged in as desired
|
|
92
|
-
adapter: local_memory # local_memory | memcache | file (default: local_memory)
|
|
92
|
+
adapter: local_memory # local_memory | memcache | file | drb (default: local_memory)
|
|
93
93
|
# this will marshall objects into and out of the store.
|
|
94
94
|
# so far yaml is the only supported marshall format.
|
|
95
95
|
marshall_method: none # none | yaml (default: none)
|
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
# objects will go into the cache with an expiry time sometime between 45 mins and 75 mins.
|
|
101
101
|
expiry_swing: <%= 15.minutes %> # time in seconds (default: 0)
|
|
102
102
|
# these options get passed on directly to the store.
|
|
103
|
-
# only the memcache and file stores uses these options currently.
|
|
104
103
|
store_options: # listed below are options for memcache
|
|
105
104
|
c_threshold: 10_000
|
|
106
105
|
compression: true
|
|
@@ -109,6 +108,8 @@
|
|
|
109
108
|
urlencode: false
|
|
110
109
|
store_options: # listed below are the options for file
|
|
111
110
|
dir: /cachetastic/caches/ # absolute path to the directory where caches should be stored.
|
|
111
|
+
store_options: # listed below are the options for drb
|
|
112
|
+
host: "druby://127.0.0.1:61676"
|
|
112
113
|
# configure logging for this cache:
|
|
113
114
|
logging:
|
|
114
115
|
# n number of logs can be configured for a cache
|
|
@@ -153,6 +154,21 @@ cachetastic.
|
|
|
153
154
|
cachetastic_caches_rails_session_cache_options:
|
|
154
155
|
default_expiry: <%= 30.minutes %>
|
|
155
156
|
</pre>
|
|
157
|
+
<h1>Cachetastic::Drb::Server</h1>
|
|
158
|
+
<p>
|
|
159
|
+
If you want to use Drb and the <a
|
|
160
|
+
href="../classes/Cachetastic/Adapters/Drb.html">Cachetastic::Adapters::Drb</a>
|
|
161
|
+
adapter, you‘ll have to use the Cachetastic::Drb::Server that comes
|
|
162
|
+
with Cachetastic. Using this server is simple. It gets installed as a
|
|
163
|
+
binary when you install the Cachetastic gem.
|
|
164
|
+
</p>
|
|
165
|
+
<pre>
|
|
166
|
+
$ cachetastic_drb_server # that will start the drb server on the host 127.0.0.1 on the port 61676
|
|
167
|
+
</pre>
|
|
168
|
+
<p>
|
|
169
|
+
The server takes to command line parameters: -h <host> -p
|
|
170
|
+
<port>
|
|
171
|
+
</p>
|
|
156
172
|
<h1>Examples:</h1>
|
|
157
173
|
<pre>
|
|
158
174
|
class MyAwesomeCache < Cachetastic::Caches::Base
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>File: cachetastic_adapters_drb.rb</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="fileHeader">
|
|
50
|
+
<h1>cachetastic_adapters_drb.rb</h1>
|
|
51
|
+
<table class="header-table">
|
|
52
|
+
<tr class="top-aligned-row">
|
|
53
|
+
<td><strong>Path:</strong></td>
|
|
54
|
+
<td>lib/adapters/cachetastic_adapters_drb.rb
|
|
55
|
+
</td>
|
|
56
|
+
</tr>
|
|
57
|
+
<tr class="top-aligned-row">
|
|
58
|
+
<td><strong>Last Update:</strong></td>
|
|
59
|
+
<td>Thu Jan 31 10:17:50 -0500 2008</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</table>
|
|
62
|
+
</div>
|
|
63
|
+
<!-- banner header -->
|
|
64
|
+
|
|
65
|
+
<div id="bodyContent">
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
<div id="contextContent">
|
|
70
|
+
|
|
71
|
+
<div id="description">
|
|
72
|
+
<p>
|
|
73
|
+
This adapter uses Cachetastic::Drb::Server as it‘s backing. The
|
|
74
|
+
configuration for this should look something like this:
|
|
75
|
+
</p>
|
|
76
|
+
<pre>
|
|
77
|
+
my_awesome_cache_options:
|
|
78
|
+
debug: false
|
|
79
|
+
adapter: drb
|
|
80
|
+
store_options:
|
|
81
|
+
host: druby://127.0.0.1:61676
|
|
82
|
+
</pre>
|
|
83
|
+
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
<!-- if includes -->
|
|
94
|
+
|
|
95
|
+
<div id="section">
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
<!-- if method_list -->
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<div id="validator-badges">
|
|
111
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
</body>
|
|
115
|
+
</html>
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
</tr>
|
|
57
57
|
<tr class="top-aligned-row">
|
|
58
58
|
<td><strong>Last Update:</strong></td>
|
|
59
|
-
<td>Tue Jan 29
|
|
59
|
+
<td>Tue Jan 29 17:46:48 -0500 2008</td>
|
|
60
60
|
</tr>
|
|
61
61
|
</table>
|
|
62
62
|
</div>
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
debug: true # true | false (default: false)
|
|
90
90
|
# this is the type of file store to be used for this cache.
|
|
91
91
|
# more adapters can be developed and plugged in as desired
|
|
92
|
-
adapter: local_memory # local_memory | memcache | file (default: local_memory)
|
|
92
|
+
adapter: local_memory # local_memory | memcache | file | drb (default: local_memory)
|
|
93
93
|
# this will marshall objects into and out of the store.
|
|
94
94
|
# so far yaml is the only supported marshall format.
|
|
95
95
|
marshall_method: none # none | yaml (default: none)
|
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
# objects will go into the cache with an expiry time sometime between 45 mins and 75 mins.
|
|
101
101
|
expiry_swing: <%= 15.minutes %> # time in seconds (default: 0)
|
|
102
102
|
# these options get passed on directly to the store.
|
|
103
|
-
# only the memcache and file stores uses these options currently.
|
|
104
103
|
store_options: # listed below are options for memcache
|
|
105
104
|
c_threshold: 10_000
|
|
106
105
|
compression: true
|
|
@@ -109,6 +108,8 @@
|
|
|
109
108
|
urlencode: false
|
|
110
109
|
store_options: # listed below are the options for file
|
|
111
110
|
dir: /cachetastic/caches/ # absolute path to the directory where caches should be stored.
|
|
111
|
+
store_options: # listed below are the options for drb
|
|
112
|
+
host: "druby://127.0.0.1:61676"
|
|
112
113
|
# configure logging for this cache:
|
|
113
114
|
logging:
|
|
114
115
|
# n number of logs can be configured for a cache
|
|
@@ -153,6 +154,21 @@ cachetastic.
|
|
|
153
154
|
cachetastic_caches_rails_session_cache_options:
|
|
154
155
|
default_expiry: <%= 30.minutes %>
|
|
155
156
|
</pre>
|
|
157
|
+
<h1>Cachetastic::Drb::Server</h1>
|
|
158
|
+
<p>
|
|
159
|
+
If you want to use Drb and the <a
|
|
160
|
+
href="../../classes/Cachetastic/Adapters/Drb.html">Cachetastic::Adapters::Drb</a>
|
|
161
|
+
adapter, you‘ll have to use the Cachetastic::Drb::Server that comes
|
|
162
|
+
with Cachetastic. Using this server is simple. It gets installed as a
|
|
163
|
+
binary when you install the Cachetastic gem.
|
|
164
|
+
</p>
|
|
165
|
+
<pre>
|
|
166
|
+
$ cachetastic_drb_server # that will start the drb server on the host 127.0.0.1 on the port 61676
|
|
167
|
+
</pre>
|
|
168
|
+
<p>
|
|
169
|
+
The server takes to command line parameters: -h <host> -p
|
|
170
|
+
<port>
|
|
171
|
+
</p>
|
|
156
172
|
<h1>Examples:</h1>
|
|
157
173
|
<pre>
|
|
158
174
|
class MyAwesomeCache < Cachetastic::Caches::Base
|
|
@@ -195,11 +211,13 @@ cachetastic.
|
|
|
195
211
|
caches/cachetastic_caches_base
|
|
196
212
|
caches/cachetastic_caches_page_cache
|
|
197
213
|
caches/cachetastic_caches_rails_session_cache
|
|
214
|
+
errors/cachetastic_errors_unsupported_adapter
|
|
198
215
|
adapters/cachetastic_adapters_base
|
|
199
216
|
adapters/cachetastic_adapters_store_object
|
|
200
217
|
adapters/cachetastic_adapters_memcache
|
|
201
218
|
adapters/cachetastic_adapters_local_memory
|
|
202
219
|
adapters/cachetastic_adapters_file
|
|
220
|
+
adapters/cachetastic_adapters_drb
|
|
203
221
|
helpers/cachetastic_helpers_active_record
|
|
204
222
|
rails_extensions/cachetastic_active_record_base
|
|
205
223
|
rails_extensions/cgi_session_cachetastic_store
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>File: cachetastic_errors_unsupported_adapter.rb</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="fileHeader">
|
|
50
|
+
<h1>cachetastic_errors_unsupported_adapter.rb</h1>
|
|
51
|
+
<table class="header-table">
|
|
52
|
+
<tr class="top-aligned-row">
|
|
53
|
+
<td><strong>Path:</strong></td>
|
|
54
|
+
<td>lib/errors/cachetastic_errors_unsupported_adapter.rb
|
|
55
|
+
</td>
|
|
56
|
+
</tr>
|
|
57
|
+
<tr class="top-aligned-row">
|
|
58
|
+
<td><strong>Last Update:</strong></td>
|
|
59
|
+
<td>Tue Jan 29 16:42:35 -0500 2008</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</table>
|
|
62
|
+
</div>
|
|
63
|
+
<!-- banner header -->
|
|
64
|
+
|
|
65
|
+
<div id="bodyContent">
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
<div id="contextContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<!-- if includes -->
|
|
80
|
+
|
|
81
|
+
<div id="section">
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
<!-- if method_list -->
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<div id="validator-badges">
|
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
</body>
|
|
101
|
+
</html>
|
data/doc/fr_class_index.html
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
<a href="classes/ActiveRecord/Base.html">ActiveRecord::Base</a><br />
|
|
24
24
|
<a href="classes/CGI/Session/CachetasticStore.html">CGI::Session::CachetasticStore</a><br />
|
|
25
25
|
<a href="classes/Cachetastic/Adapters/Base.html">Cachetastic::Adapters::Base</a><br />
|
|
26
|
+
<a href="classes/Cachetastic/Adapters/Drb.html">Cachetastic::Adapters::Drb</a><br />
|
|
26
27
|
<a href="classes/Cachetastic/Adapters/File.html">Cachetastic::Adapters::File</a><br />
|
|
27
28
|
<a href="classes/Cachetastic/Adapters/LocalMemory.html">Cachetastic::Adapters::LocalMemory</a><br />
|
|
28
29
|
<a href="classes/Cachetastic/Adapters/Memcache.html">Cachetastic::Adapters::Memcache</a><br />
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
<a href="classes/Cachetastic/Caches/PageCache.html">Cachetastic::Caches::PageCache</a><br />
|
|
32
33
|
<a href="classes/Cachetastic/Caches/RailsSessionCache.html">Cachetastic::Caches::RailsSessionCache</a><br />
|
|
33
34
|
<a href="classes/Cachetastic/Connection.html">Cachetastic::Connection</a><br />
|
|
35
|
+
<a href="classes/Cachetastic/Errors/UnsupportedAdapter.html">Cachetastic::Errors::UnsupportedAdapter</a><br />
|
|
34
36
|
<a href="classes/Cachetastic/Logger.html">Cachetastic::Logger</a><br />
|
|
35
37
|
</div>
|
|
36
38
|
</div>
|
data/doc/fr_file_index.html
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
<div id="index-entries">
|
|
23
23
|
<a href="files/init_rb.html">init.rb</a><br />
|
|
24
24
|
<a href="files/lib/adapters/cachetastic_adapters_base_rb.html">lib/adapters/cachetastic_adapters_base.rb</a><br />
|
|
25
|
+
<a href="files/lib/adapters/cachetastic_adapters_drb_rb.html">lib/adapters/cachetastic_adapters_drb.rb</a><br />
|
|
25
26
|
<a href="files/lib/adapters/cachetastic_adapters_file_rb.html">lib/adapters/cachetastic_adapters_file.rb</a><br />
|
|
26
27
|
<a href="files/lib/adapters/cachetastic_adapters_local_memory_rb.html">lib/adapters/cachetastic_adapters_local_memory.rb</a><br />
|
|
27
28
|
<a href="files/lib/adapters/cachetastic_adapters_memcache_rb.html">lib/adapters/cachetastic_adapters_memcache.rb</a><br />
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
<a href="files/lib/cachetastic_rb.html">lib/cachetastic.rb</a><br />
|
|
33
34
|
<a href="files/lib/cachetastic_connection_rb.html">lib/cachetastic_connection.rb</a><br />
|
|
34
35
|
<a href="files/lib/cachetastic_logger_rb.html">lib/cachetastic_logger.rb</a><br />
|
|
36
|
+
<a href="files/lib/errors/cachetastic_errors_unsupported_adapter_rb.html">lib/errors/cachetastic_errors_unsupported_adapter.rb</a><br />
|
|
35
37
|
<a href="files/lib/helpers/cachetastic_helpers_active_record_rb.html">lib/helpers/cachetastic_helpers_active_record.rb</a><br />
|
|
36
38
|
<a href="files/lib/rails_extensions/cachetastic_active_record_base_rb.html">lib/rails_extensions/cachetastic_active_record_base.rb</a><br />
|
|
37
39
|
<a href="files/lib/rails_extensions/cgi_session_cachetastic_store_rb.html">lib/rails_extensions/cgi_session_cachetastic_store.rb</a><br />
|