cachetastic 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/classes/ActiveRecord.html +107 -0
- data/doc/classes/ActiveRecord/Base.html +207 -0
- data/doc/classes/ActiveRecord/Base.src/M000001.html +25 -0
- data/doc/classes/ActiveRecord/Base.src/M000002.html +18 -0
- data/doc/classes/ActiveRecord/Base.src/M000003.html +18 -0
- data/doc/classes/ActiveRecord/Base.src/M000004.html +18 -0
- data/doc/classes/ActiveRecord/Base.src/M000005.html +18 -0
- data/doc/classes/Cachetastic.html +119 -0
- data/doc/classes/Cachetastic/Caches.html +114 -0
- data/doc/classes/Cachetastic/Caches/ActiveRecord.html +105 -0
- data/doc/classes/Cachetastic/Caches/Base.html +240 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000033.html +28 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000034.html +32 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000035.html +20 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000036.html +19 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000037.html +18 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000038.html +18 -0
- data/doc/classes/Cachetastic/Caches/Base.src/M000039.html +18 -0
- data/doc/classes/Cachetastic/Caches/PageCache.html +113 -0
- data/doc/classes/Cachetastic/Caches/RailsSessionCache.html +113 -0
- data/doc/classes/Cachetastic/Connection.html +186 -0
- data/doc/classes/Cachetastic/Connection.src/M000040.html +18 -0
- data/doc/classes/Cachetastic/Connection.src/M000041.html +24 -0
- data/doc/classes/Cachetastic/Helpers.html +115 -0
- data/doc/classes/Cachetastic/Helpers/ActiveRecord.html +165 -0
- data/doc/classes/Cachetastic/Helpers/ActiveRecord.src/M000006.html +29 -0
- data/doc/classes/Cachetastic/Helpers/ActiveRecord.src/M000007.html +23 -0
- data/doc/classes/Cachetastic/Helpers/ActiveRecord.src/M000008.html +18 -0
- data/doc/classes/Cachetastic/Logger.html +174 -0
- data/doc/classes/Cachetastic/Logger.src/M000042.html +22 -0
- data/doc/classes/Cachetastic/Stores.html +113 -0
- data/doc/classes/Cachetastic/Stores/Base.html +237 -0
- data/doc/classes/Cachetastic/Stores/Base.src/M000028.html +24 -0
- data/doc/classes/Cachetastic/Stores/Base.src/M000029.html +18 -0
- data/doc/classes/Cachetastic/Stores/Base.src/M000030.html +20 -0
- data/doc/classes/Cachetastic/Stores/Base.src/M000031.html +22 -0
- data/doc/classes/Cachetastic/Stores/Base.src/M000032.html +21 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory.html +233 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory.src/M000020.html +18 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory.src/M000021.html +18 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory.src/M000022.html +18 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory.src/M000023.html +26 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory.src/M000024.html +18 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory.src/M000025.html +25 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory/StoreObject.html +177 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory/StoreObject.src/M000026.html +27 -0
- data/doc/classes/Cachetastic/Stores/LocalMemory/StoreObject.src/M000027.html +19 -0
- data/doc/classes/Cachetastic/Stores/Memcache.html +309 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000009.html +19 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000010.html +18 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000011.html +18 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000012.html +18 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000013.html +18 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000014.html +18 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000015.html +19 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000016.html +24 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000017.html +20 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000018.html +20 -0
- data/doc/classes/Cachetastic/Stores/Memcache.src/M000019.html +24 -0
- data/doc/created.rid +1 -0
- data/doc/files/init_rb.html +101 -0
- data/doc/files/lib/caches/cachetastic_caches_base_rb.html +101 -0
- data/doc/files/lib/caches/cachetastic_caches_page_cache_rb.html +101 -0
- data/doc/files/lib/caches/cachetastic_caches_rails_session_cache_rb.html +101 -0
- data/doc/files/lib/cachetastic_connection_rb.html +107 -0
- data/doc/files/lib/cachetastic_logger_rb.html +107 -0
- data/doc/files/lib/cachetastic_rb.html +233 -0
- data/doc/files/lib/helpers/cachetastic_helpers_active_record_rb.html +101 -0
- data/doc/files/lib/rails_extensions/cachetastic_active_record_base_rb.html +101 -0
- data/doc/files/lib/rails_extensions/cgi_session_cachetastic_store_rb.html +109 -0
- data/doc/files/lib/stores/cachetastic_stores_base_rb.html +101 -0
- data/doc/files/lib/stores/cachetastic_stores_local_memory_rb.html +101 -0
- data/doc/files/lib/stores/cachetastic_stores_memcache_rb.html +101 -0
- data/doc/fr_class_index.html +43 -0
- data/doc/fr_file_index.html +39 -0
- data/doc/fr_method_index.html +68 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/init.rb +3 -1
- data/lib/caches/cachetastic_caches_base.rb +3 -0
- data/lib/caches/cachetastic_caches_page_cache.rb +2 -1
- data/lib/caches/cachetastic_caches_rails_session_cache.rb +2 -1
- data/lib/cachetastic.rb +5 -0
- data/lib/cachetastic_connection.rb +4 -3
- data/lib/cachetastic_logger.rb +1 -0
- data/lib/stores/cachetastic_stores_base.rb +0 -17
- data/lib/stores/cachetastic_stores_memcache.rb +1 -90
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +91 -3
@@ -0,0 +1,22 @@
|
|
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::Logger)</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/cachetastic_logger.rb, line 7</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">cache_name</span>)
|
15
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>
|
16
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">cache_name</span> = <span class="ruby-identifier">cache_name</span>
|
17
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">options</span>.<span class="ruby-identifier">each_pair</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span>, <span class="ruby-identifier">opts</span><span class="ruby-operator">|</span>
|
18
|
+
<span class="ruby-identifier">opts</span>[<span class="ruby-value str">"level"</span>] = (<span class="ruby-identifier">opts</span>[<span class="ruby-value str">"level"</span>] <span class="ruby-operator">||=</span> <span class="ruby-value str">"info"</span>).<span class="ruby-identifier">to_sym</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,113 @@
|
|
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>Module: Cachetastic::Stores</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>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">Cachetastic::Stores</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/cachetastic_rb.html">
|
59
|
+
lib/cachetastic.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
<!-- banner header -->
|
68
|
+
|
69
|
+
<div id="bodyContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<div id="contextContent">
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
<!-- if includes -->
|
84
|
+
|
85
|
+
<div id="section">
|
86
|
+
|
87
|
+
<div id="class-list">
|
88
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
89
|
+
|
90
|
+
Class <a href="Stores/Base.html" class="link">Cachetastic::Stores::Base</a><br />
|
91
|
+
Class <a href="Stores/LocalMemory.html" class="link">Cachetastic::Stores::LocalMemory</a><br />
|
92
|
+
Class <a href="Stores/Memcache.html" class="link">Cachetastic::Stores::Memcache</a><br />
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<!-- if method_list -->
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
<div id="validator-badges">
|
109
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
</body>
|
113
|
+
</html>
|
@@ -0,0 +1,237 @@
|
|
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::Stores::Base</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::Stores::Base</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/stores/cachetastic_stores_base_rb.html">
|
59
|
+
lib/stores/cachetastic_stores_base.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
|
+
Object
|
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="#M000031">configure</a>
|
90
|
+
<a href="#M000030">debug?</a>
|
91
|
+
<a href="#M000032">get_options</a>
|
92
|
+
<a href="#M000028">new</a>
|
93
|
+
<a href="#M000029">valid?</a>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
|
100
|
+
<!-- if includes -->
|
101
|
+
|
102
|
+
<div id="section">
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
<div id="attribute-list">
|
109
|
+
<h3 class="section-bar">Attributes</h3>
|
110
|
+
|
111
|
+
<div class="name-list">
|
112
|
+
<table>
|
113
|
+
<tr class="top-aligned-row context-row">
|
114
|
+
<td class="context-item-name">all_options</td>
|
115
|
+
<td class="context-item-value"> [R] </td>
|
116
|
+
<td class="context-item-desc"></td>
|
117
|
+
</tr>
|
118
|
+
<tr class="top-aligned-row context-row">
|
119
|
+
<td class="context-item-name">logger</td>
|
120
|
+
<td class="context-item-value"> [R] </td>
|
121
|
+
<td class="context-item-desc"></td>
|
122
|
+
</tr>
|
123
|
+
<tr class="top-aligned-row context-row">
|
124
|
+
<td class="context-item-name">logging</td>
|
125
|
+
<td class="context-item-value"> [R] </td>
|
126
|
+
<td class="context-item-desc"></td>
|
127
|
+
</tr>
|
128
|
+
<tr class="top-aligned-row context-row">
|
129
|
+
<td class="context-item-name">name</td>
|
130
|
+
<td class="context-item-value"> [R] </td>
|
131
|
+
<td class="context-item-desc"></td>
|
132
|
+
</tr>
|
133
|
+
<tr class="top-aligned-row context-row">
|
134
|
+
<td class="context-item-name">servers</td>
|
135
|
+
<td class="context-item-value"> [R] </td>
|
136
|
+
<td class="context-item-desc"></td>
|
137
|
+
</tr>
|
138
|
+
<tr class="top-aligned-row context-row">
|
139
|
+
<td class="context-item-name">store_options</td>
|
140
|
+
<td class="context-item-value"> [R] </td>
|
141
|
+
<td class="context-item-desc"></td>
|
142
|
+
</tr>
|
143
|
+
</table>
|
144
|
+
</div>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<!-- if method_list -->
|
150
|
+
<div id="methods">
|
151
|
+
<h3 class="section-bar">Public Class methods</h3>
|
152
|
+
|
153
|
+
<div id="method-M000032" class="method-detail">
|
154
|
+
<a name="M000032"></a>
|
155
|
+
|
156
|
+
<div class="method-heading">
|
157
|
+
<a href="Base.src/M000032.html" target="Code" class="method-signature"
|
158
|
+
onclick="popupCode('Base.src/M000032.html');return false;">
|
159
|
+
<span class="method-name">get_options</span><span class="method-args">(name)</span>
|
160
|
+
</a>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<div class="method-description">
|
164
|
+
</div>
|
165
|
+
</div>
|
166
|
+
|
167
|
+
<div id="method-M000028" class="method-detail">
|
168
|
+
<a name="M000028"></a>
|
169
|
+
|
170
|
+
<div class="method-heading">
|
171
|
+
<a href="Base.src/M000028.html" target="Code" class="method-signature"
|
172
|
+
onclick="popupCode('Base.src/M000028.html');return false;">
|
173
|
+
<span class="method-name">new</span><span class="method-args">(name)</span>
|
174
|
+
</a>
|
175
|
+
</div>
|
176
|
+
|
177
|
+
<div class="method-description">
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
182
|
+
|
183
|
+
<div id="method-M000031" class="method-detail">
|
184
|
+
<a name="M000031"></a>
|
185
|
+
|
186
|
+
<div class="method-heading">
|
187
|
+
<a href="Base.src/M000031.html" target="Code" class="method-signature"
|
188
|
+
onclick="popupCode('Base.src/M000031.html');return false;">
|
189
|
+
<span class="method-name">configure</span><span class="method-args">()</span>
|
190
|
+
</a>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
<div class="method-description">
|
194
|
+
</div>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
<div id="method-M000030" class="method-detail">
|
198
|
+
<a name="M000030"></a>
|
199
|
+
|
200
|
+
<div class="method-heading">
|
201
|
+
<a href="Base.src/M000030.html" target="Code" class="method-signature"
|
202
|
+
onclick="popupCode('Base.src/M000030.html');return false;">
|
203
|
+
<span class="method-name">debug?</span><span class="method-args">()</span>
|
204
|
+
</a>
|
205
|
+
</div>
|
206
|
+
|
207
|
+
<div class="method-description">
|
208
|
+
</div>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
<div id="method-M000029" class="method-detail">
|
212
|
+
<a name="M000029"></a>
|
213
|
+
|
214
|
+
<div class="method-heading">
|
215
|
+
<a href="Base.src/M000029.html" target="Code" class="method-signature"
|
216
|
+
onclick="popupCode('Base.src/M000029.html');return false;">
|
217
|
+
<span class="method-name">valid?</span><span class="method-args">()</span>
|
218
|
+
</a>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
<div class="method-description">
|
222
|
+
</div>
|
223
|
+
</div>
|
224
|
+
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
</div>
|
230
|
+
|
231
|
+
|
232
|
+
<div id="validator-badges">
|
233
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
234
|
+
</div>
|
235
|
+
|
236
|
+
</body>
|
237
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
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::Stores::Base)</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/stores/cachetastic_stores_base.rb, line 10</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>)
|
15
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
16
|
+
<span class="ruby-identifier">configure</span>
|
17
|
+
<span class="ruby-identifier">setup</span>
|
18
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">debug?</span>
|
19
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">:self</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inspect</span>)
|
20
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">:options</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_options</span>.<span class="ruby-identifier">inspect</span>)
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
<span class="ruby-keyword kw">end</span></pre>
|
23
|
+
</body>
|
24
|
+
</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>valid? (Cachetastic::Stores::Base)</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/stores/cachetastic_stores_base.rb, line 20</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid?</span>
|
15
|
+
<span class="ruby-keyword kw">false</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>debug? (Cachetastic::Stores::Base)</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/stores/cachetastic_stores_base.rb, line 30</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debug?</span>
|
15
|
+
<span class="ruby-identifier">ivar_cache</span>(<span class="ruby-identifier">:debug</span>) <span class="ruby-keyword kw">do</span>
|
16
|
+
(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_options</span>[<span class="ruby-value str">"debug"</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span> <span class="ruby-operator">||</span> <span class="ruby-keyword kw">false</span>)
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
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>configure (Cachetastic::Stores::Base)</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/stores/cachetastic_stores_base.rb, line 36</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span>
|
15
|
+
<span class="ruby-ivar">@all_options</span> = <span class="ruby-constant">Cachetastic</span><span class="ruby-operator">::</span><span class="ruby-constant">Stores</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">get_options</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span>)
|
16
|
+
<span class="ruby-ivar">@store_options</span> = (<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_options</span>[<span class="ruby-value str">"store_options"</span>] <span class="ruby-operator">||</span> {})
|
17
|
+
<span class="ruby-ivar">@servers</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_options</span>[<span class="ruby-value str">"servers"</span>]
|
18
|
+
<span class="ruby-ivar">@logging</span> = (<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_options</span>[<span class="ruby-value str">"logging"</span>] <span class="ruby-operator">||</span> {})
|
19
|
+
<span class="ruby-ivar">@logger</span> = <span class="ruby-constant">Cachetastic</span><span class="ruby-operator">::</span><span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logging</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span>)
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|