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,107 @@
|
|
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: ActiveRecord</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">ActiveRecord</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
</td>
|
59
|
+
</tr>
|
60
|
+
|
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
|
+
<div id="class-list">
|
84
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
85
|
+
|
86
|
+
Class <a href="ActiveRecord/Base.html" class="link">ActiveRecord::Base</a><br />
|
87
|
+
|
88
|
+
</div>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<!-- if method_list -->
|
97
|
+
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
|
102
|
+
<div id="validator-badges">
|
103
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
</body>
|
107
|
+
</html>
|
@@ -0,0 +1,207 @@
|
|
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: ActiveRecord::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">ActiveRecord::Base</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/rails_extensions/cachetastic_active_record_base_rb.html">
|
59
|
+
lib/rails_extensions/cachetastic_active_record_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="#M000004">cache_self</a>
|
90
|
+
<a href="#M000002">delete_from_cache</a>
|
91
|
+
<a href="#M000001">get_from_cache</a>
|
92
|
+
<a href="#M000003">set_into_cache</a>
|
93
|
+
<a href="#M000005">uncache_self</a>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
|
100
|
+
<!-- if includes -->
|
101
|
+
<div id="includes">
|
102
|
+
<h3 class="section-bar">Included Modules</h3>
|
103
|
+
|
104
|
+
<div id="includes-list">
|
105
|
+
<span class="include-name"><a href="../Cachetastic/Helpers/ActiveRecord.html">Cachetastic::Helpers::ActiveRecord</a></span>
|
106
|
+
<span class="include-name"><a href="../Cachetastic/Helpers/ActiveRecord.html">Cachetastic::Helpers::ActiveRecord</a></span>
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div id="section">
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<!-- if method_list -->
|
120
|
+
<div id="methods">
|
121
|
+
<h3 class="section-bar">Public Class methods</h3>
|
122
|
+
|
123
|
+
<div id="method-M000002" class="method-detail">
|
124
|
+
<a name="M000002"></a>
|
125
|
+
|
126
|
+
<div class="method-heading">
|
127
|
+
<a href="Base.src/M000002.html" target="Code" class="method-signature"
|
128
|
+
onclick="popupCode('Base.src/M000002.html');return false;">
|
129
|
+
<span class="method-name">delete_from_cache</span><span class="method-args">(key)</span>
|
130
|
+
</a>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<div class="method-description">
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<div id="method-M000001" class="method-detail">
|
138
|
+
<a name="M000001"></a>
|
139
|
+
|
140
|
+
<div class="method-heading">
|
141
|
+
<a href="Base.src/M000001.html" target="Code" class="method-signature"
|
142
|
+
onclick="popupCode('Base.src/M000001.html');return false;">
|
143
|
+
<span class="method-name">get_from_cache</span><span class="method-args">(key, self_populate = false)</span>
|
144
|
+
</a>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
<div class="method-description">
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
<div id="method-M000003" class="method-detail">
|
152
|
+
<a name="M000003"></a>
|
153
|
+
|
154
|
+
<div class="method-heading">
|
155
|
+
<a href="Base.src/M000003.html" target="Code" class="method-signature"
|
156
|
+
onclick="popupCode('Base.src/M000003.html');return false;">
|
157
|
+
<span class="method-name">set_into_cache</span><span class="method-args">(key, value, expiry = 0)</span>
|
158
|
+
</a>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<div class="method-description">
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
166
|
+
|
167
|
+
<div id="method-M000004" class="method-detail">
|
168
|
+
<a name="M000004"></a>
|
169
|
+
|
170
|
+
<div class="method-heading">
|
171
|
+
<a href="Base.src/M000004.html" target="Code" class="method-signature"
|
172
|
+
onclick="popupCode('Base.src/M000004.html');return false;">
|
173
|
+
<span class="method-name">cache_self</span><span class="method-args">()</span>
|
174
|
+
</a>
|
175
|
+
</div>
|
176
|
+
|
177
|
+
<div class="method-description">
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<div id="method-M000005" class="method-detail">
|
182
|
+
<a name="M000005"></a>
|
183
|
+
|
184
|
+
<div class="method-heading">
|
185
|
+
<a href="Base.src/M000005.html" target="Code" class="method-signature"
|
186
|
+
onclick="popupCode('Base.src/M000005.html');return false;">
|
187
|
+
<span class="method-name">uncache_self</span><span class="method-args">()</span>
|
188
|
+
</a>
|
189
|
+
</div>
|
190
|
+
|
191
|
+
<div class="method-description">
|
192
|
+
</div>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
|
196
|
+
</div>
|
197
|
+
|
198
|
+
|
199
|
+
</div>
|
200
|
+
|
201
|
+
|
202
|
+
<div id="validator-badges">
|
203
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
204
|
+
</div>
|
205
|
+
|
206
|
+
</body>
|
207
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
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>get_from_cache (ActiveRecord::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/rails_extensions/cachetastic_active_record_base.rb, line 8</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_from_cache</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">self_populate</span> = <span class="ruby-keyword kw">false</span>)
|
15
|
+
<span class="ruby-identifier">res</span> = <span class="ruby-identifier">cache_class</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">key</span>)
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">res</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">self_populate</span>
|
17
|
+
<span class="ruby-identifier">res</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">constantize</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">key</span>)
|
18
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">res</span>.<span class="ruby-identifier">nil?</span>
|
19
|
+
<span class="ruby-identifier">res</span>.<span class="ruby-identifier">cache_self</span>
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
<span class="ruby-identifier">res</span>
|
23
|
+
<span class="ruby-keyword kw">end</span></pre>
|
24
|
+
</body>
|
25
|
+
</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>delete_from_cache (ActiveRecord::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/rails_extensions/cachetastic_active_record_base.rb, line 19</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_from_cache</span>(<span class="ruby-identifier">key</span>)
|
15
|
+
<span class="ruby-identifier">cache_class</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</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>set_into_cache (ActiveRecord::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/rails_extensions/cachetastic_active_record_base.rb, line 23</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_into_cache</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">expiry</span> = <span class="ruby-value">0</span>)
|
15
|
+
<span class="ruby-identifier">cache_class</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">expiry</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</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>cache_self (ActiveRecord::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/rails_extensions/cachetastic_active_record_base.rb, line 29</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cache_self</span>
|
15
|
+
<span class="ruby-identifier">cache_class</span>.<span class="ruby-identifier">set</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">id</span>, <span class="ruby-keyword kw">self</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new_record?</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</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>uncache_self (ActiveRecord::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/rails_extensions/cachetastic_active_record_base.rb, line 33</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uncache_self</span>
|
15
|
+
<span class="ruby-identifier">cache_class</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">id</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new_record?</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,119 @@
|
|
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</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</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
|
+
<a href="../files/lib/helpers/cachetastic_helpers_active_record_rb.html">
|
63
|
+
lib/helpers/cachetastic_helpers_active_record.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
|
69
|
+
</table>
|
70
|
+
</div>
|
71
|
+
<!-- banner header -->
|
72
|
+
|
73
|
+
<div id="bodyContent">
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<div id="contextContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
|
87
|
+
<!-- if includes -->
|
88
|
+
|
89
|
+
<div id="section">
|
90
|
+
|
91
|
+
<div id="class-list">
|
92
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
93
|
+
|
94
|
+
Module <a href="Cachetastic/Caches.html" class="link">Cachetastic::Caches</a><br />
|
95
|
+
Module <a href="Cachetastic/Helpers.html" class="link">Cachetastic::Helpers</a><br />
|
96
|
+
Module <a href="Cachetastic/Stores.html" class="link">Cachetastic::Stores</a><br />
|
97
|
+
Class <a href="Cachetastic/Connection.html" class="link">Cachetastic::Connection</a><br />
|
98
|
+
Class <a href="Cachetastic/Logger.html" class="link">Cachetastic::Logger</a><br />
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
<!-- if method_list -->
|
109
|
+
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
|
114
|
+
<div id="validator-badges">
|
115
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
116
|
+
</div>
|
117
|
+
|
118
|
+
</body>
|
119
|
+
</html>
|