cachetastic 1.2.3 → 1.2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -7
- data/bin/cachetastic_drb_server +18 -3
- data/lib/adapters/cachetastic_adapters_base.rb +2 -1
- data/lib/adapters/cachetastic_adapters_drb.rb +4 -18
- data/lib/adapters/cachetastic_adapters_file.rb +0 -3
- data/lib/adapters/cachetastic_adapters_html_file.rb +119 -0
- data/lib/caches/cachetastic_caches_base.rb +24 -18
- data/lib/caches/cachetastic_caches_mack_session_cache.rb +3 -0
- data/lib/cachetastic.rb +2 -0
- data/lib/cachetastic_logger.rb +1 -1
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +13 -111
- data/doc/classes/ActiveRecord/Base.html +0 -227
- data/doc/classes/ActiveRecord/Base.src/M000001.html +0 -25
- data/doc/classes/ActiveRecord/Base.src/M000002.html +0 -18
- data/doc/classes/ActiveRecord/Base.src/M000003.html +0 -18
- data/doc/classes/ActiveRecord/Base.src/M000004.html +0 -18
- data/doc/classes/ActiveRecord/Base.src/M000005.html +0 -18
- data/doc/classes/CGI/Session/CachetasticStore.html +0 -122
- data/doc/classes/Cachetastic/Adapters/Base.html +0 -260
- data/doc/classes/Cachetastic/Adapters/Base.src/M000024.html +0 -24
- data/doc/classes/Cachetastic/Adapters/Base.src/M000025.html +0 -20
- data/doc/classes/Cachetastic/Adapters/Base.src/M000026.html +0 -21
- data/doc/classes/Cachetastic/Adapters/Drb.html +0 -244
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000027.html +0 -22
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000028.html +0 -18
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000029.html +0 -18
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000030.html +0 -26
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000031.html +0 -18
- data/doc/classes/Cachetastic/Adapters/Drb.src/M000032.html +0 -25
- data/doc/classes/Cachetastic/Adapters/File.html +0 -265
- data/doc/classes/Cachetastic/Adapters/File.src/M000033.html +0 -18
- data/doc/classes/Cachetastic/Adapters/File.src/M000034.html +0 -20
- data/doc/classes/Cachetastic/Adapters/File.src/M000035.html +0 -19
- data/doc/classes/Cachetastic/Adapters/File.src/M000036.html +0 -35
- data/doc/classes/Cachetastic/Adapters/File.src/M000037.html +0 -21
- data/doc/classes/Cachetastic/Adapters/File.src/M000038.html +0 -25
- data/doc/classes/Cachetastic/Adapters/LocalMemory.html +0 -238
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000018.html +0 -18
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000019.html +0 -18
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000020.html +0 -18
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000021.html +0 -26
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000022.html +0 -18
- data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000023.html +0 -25
- data/doc/classes/Cachetastic/Adapters/Memcache.html +0 -335
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000007.html +0 -19
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000008.html +0 -18
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000009.html +0 -18
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000010.html +0 -18
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000011.html +0 -18
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000012.html +0 -18
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000013.html +0 -24
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000014.html +0 -19
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000015.html +0 -20
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000016.html +0 -20
- data/doc/classes/Cachetastic/Adapters/Memcache.src/M000017.html +0 -24
- data/doc/classes/Cachetastic/Caches/Base.html +0 -441
- data/doc/classes/Cachetastic/Caches/Base.src/M000040.html +0 -18
- data/doc/classes/Cachetastic/Caches/Base.src/M000041.html +0 -43
- data/doc/classes/Cachetastic/Caches/Base.src/M000042.html +0 -23
- data/doc/classes/Cachetastic/Caches/Base.src/M000043.html +0 -20
- data/doc/classes/Cachetastic/Caches/Base.src/M000044.html +0 -19
- data/doc/classes/Cachetastic/Caches/Base.src/M000045.html +0 -18
- data/doc/classes/Cachetastic/Caches/Base.src/M000046.html +0 -18
- data/doc/classes/Cachetastic/Caches/Base.src/M000047.html +0 -18
- data/doc/classes/Cachetastic/Caches/Base.src/M000048.html +0 -23
- data/doc/classes/Cachetastic/Caches/Base.src/M000049.html +0 -18
- data/doc/classes/Cachetastic/Caches/Base.src/M000050.html +0 -18
- data/doc/classes/Cachetastic/Caches/Base.src/M000051.html +0 -18
- data/doc/classes/Cachetastic/Caches/Base.src/M000052.html +0 -28
- data/doc/classes/Cachetastic/Caches/Base/RegisteredCaches.html +0 -168
- data/doc/classes/Cachetastic/Caches/Base/RegisteredCaches.src/M000053.html +0 -18
- data/doc/classes/Cachetastic/Caches/PageCache.html +0 -121
- data/doc/classes/Cachetastic/Caches/RailsSessionCache.html +0 -145
- data/doc/classes/Cachetastic/Caches/RailsSessionCache.src/M000039.html +0 -18
- data/doc/classes/Cachetastic/Connection.html +0 -186
- data/doc/classes/Cachetastic/Connection.src/M000054.html +0 -18
- data/doc/classes/Cachetastic/Connection.src/M000055.html +0 -24
- data/doc/classes/Cachetastic/Errors/UnsupportedAdapter.html +0 -137
- data/doc/classes/Cachetastic/Errors/UnsupportedAdapter.src/M000006.html +0 -18
- data/doc/classes/Cachetastic/Logger.html +0 -174
- data/doc/classes/Cachetastic/Logger.src/M000056.html +0 -22
- data/doc/created.rid +0 -1
- data/doc/files/init_rb.html +0 -227
- data/doc/files/lib/adapters/cachetastic_adapters_base_rb.html +0 -139
- data/doc/files/lib/adapters/cachetastic_adapters_drb_rb.html +0 -115
- data/doc/files/lib/adapters/cachetastic_adapters_file_rb.html +0 -121
- data/doc/files/lib/adapters/cachetastic_adapters_local_memory_rb.html +0 -109
- data/doc/files/lib/adapters/cachetastic_adapters_memcache_rb.html +0 -127
- data/doc/files/lib/adapters/cachetastic_adapters_store_object_rb.html +0 -101
- data/doc/files/lib/caches/cachetastic_caches_base_rb.html +0 -108
- data/doc/files/lib/caches/cachetastic_caches_page_cache_rb.html +0 -109
- data/doc/files/lib/caches/cachetastic_caches_rails_session_cache_rb.html +0 -107
- data/doc/files/lib/cachetastic_connection_rb.html +0 -107
- data/doc/files/lib/cachetastic_logger_rb.html +0 -107
- data/doc/files/lib/cachetastic_rb.html +0 -255
- data/doc/files/lib/errors/cachetastic_errors_unsupported_adapter_rb.html +0 -101
- data/doc/files/lib/helpers/cachetastic_helpers_active_record_rb.html +0 -101
- data/doc/files/lib/rails_extensions/cachetastic_active_record_base_rb.html +0 -101
- data/doc/files/lib/rails_extensions/cgi_session_cachetastic_store_rb.html +0 -109
- data/doc/fr_class_index.html +0 -40
- data/doc/fr_file_index.html +0 -43
- data/doc/fr_method_index.html +0 -82
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
@@ -1,18 +0,0 @@
|
|
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::Connection)</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_connection.rb, line 7</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
15
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">connections</span> = {}
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,24 +0,0 @@
|
|
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 (Cachetastic::Connection)</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_connection.rb, line 14</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">name</span>)
|
15
|
-
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>
|
16
|
-
<span class="ruby-identifier">conn</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">connections</span>[<span class="ruby-identifier">name</span>]
|
17
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">conn</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">conn</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">conn</span>.<span class="ruby-identifier">valid?</span>
|
18
|
-
<span class="ruby-identifier">adapter</span> = <span class="ruby-constant">Cachetastic</span><span class="ruby-operator">::</span><span class="ruby-constant">Adapters</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">get_options</span>(<span class="ruby-identifier">name</span>)[<span class="ruby-value str">"adapter"</span>].<span class="ruby-identifier">camelcase</span>
|
19
|
-
<span class="ruby-identifier">conn</span> = <span class="ruby-node">"Cachetastic::Adapters::#{adapter}"</span>.<span class="ruby-identifier">constantize</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>)
|
20
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">connections</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">conn</span>
|
21
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">conn</span>
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|
@@ -1,137 +0,0 @@
|
|
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>
|
@@ -1,18 +0,0 @@
|
|
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>
|
@@ -1,174 +0,0 @@
|
|
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::Logger</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::Logger</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/cachetastic_logger_rb.html">
|
59
|
-
lib/cachetastic_logger.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
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
This class handles logging for the caches and their adapters.
|
84
|
-
</p>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="method-list">
|
92
|
-
<h3 class="section-bar">Methods</h3>
|
93
|
-
|
94
|
-
<div class="name-list">
|
95
|
-
<a href="#M000056">new</a>
|
96
|
-
</div>
|
97
|
-
</div>
|
98
|
-
|
99
|
-
</div>
|
100
|
-
|
101
|
-
|
102
|
-
<!-- if includes -->
|
103
|
-
|
104
|
-
<div id="section">
|
105
|
-
|
106
|
-
|
107
|
-
<div id="constants-list">
|
108
|
-
<h3 class="section-bar">Constants</h3>
|
109
|
-
|
110
|
-
<div class="name-list">
|
111
|
-
<table summary="Constants">
|
112
|
-
<tr class="top-aligned-row context-row">
|
113
|
-
<td class="context-item-name">LOG_LEVELS</td>
|
114
|
-
<td>=</td>
|
115
|
-
<td class="context-item-value">[:fatal, :error, :warn, :info, :debug]</td>
|
116
|
-
</tr>
|
117
|
-
</table>
|
118
|
-
</div>
|
119
|
-
</div>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<div id="attribute-list">
|
124
|
-
<h3 class="section-bar">Attributes</h3>
|
125
|
-
|
126
|
-
<div class="name-list">
|
127
|
-
<table>
|
128
|
-
<tr class="top-aligned-row context-row">
|
129
|
-
<td class="context-item-name">cache_name</td>
|
130
|
-
<td class="context-item-value"> [RW] </td>
|
131
|
-
<td class="context-item-desc"></td>
|
132
|
-
</tr>
|
133
|
-
<tr class="top-aligned-row context-row">
|
134
|
-
<td class="context-item-name">options</td>
|
135
|
-
<td class="context-item-value"> [RW] </td>
|
136
|
-
<td class="context-item-desc"></td>
|
137
|
-
</tr>
|
138
|
-
</table>
|
139
|
-
</div>
|
140
|
-
</div>
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<!-- if method_list -->
|
145
|
-
<div id="methods">
|
146
|
-
<h3 class="section-bar">Public Class methods</h3>
|
147
|
-
|
148
|
-
<div id="method-M000056" class="method-detail">
|
149
|
-
<a name="M000056"></a>
|
150
|
-
|
151
|
-
<div class="method-heading">
|
152
|
-
<a href="Logger.src/M000056.html" target="Code" class="method-signature"
|
153
|
-
onclick="popupCode('Logger.src/M000056.html');return false;">
|
154
|
-
<span class="method-name">new</span><span class="method-args">(options, cache_name)</span>
|
155
|
-
</a>
|
156
|
-
</div>
|
157
|
-
|
158
|
-
<div class="method-description">
|
159
|
-
</div>
|
160
|
-
</div>
|
161
|
-
|
162
|
-
|
163
|
-
</div>
|
164
|
-
|
165
|
-
|
166
|
-
</div>
|
167
|
-
|
168
|
-
|
169
|
-
<div id="validator-badges">
|
170
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
</body>
|
174
|
-
</html>
|
@@ -1,22 +0,0 @@
|
|
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>
|
data/doc/created.rid
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Thu, 31 Jan 2008 14:38:01 -0500
|
data/doc/files/init_rb.html
DELETED
@@ -1,227 +0,0 @@
|
|
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: init.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>init.rb</h1>
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td><strong>Path:</strong></td>
|
54
|
-
<td>init.rb
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<tr class="top-aligned-row">
|
58
|
-
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>Wed Jan 16 12:54:51 -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
|
-
<h1>Gem Requirements:</h1>
|
73
|
-
<ul>
|
74
|
-
<li>Application Configuration
|
75
|
-
|
76
|
-
</li>
|
77
|
-
<li>Ruby Extensions
|
78
|
-
|
79
|
-
</li>
|
80
|
-
<li>Rails Extensions
|
81
|
-
|
82
|
-
</li>
|
83
|
-
</ul>
|
84
|
-
<h1>Configuration:</h1>
|
85
|
-
<pre>
|
86
|
-
cachetastic_default_options:
|
87
|
-
# this will dump into the log, configuration info for each cache, as well as the .inspect
|
88
|
-
# for each object returned from the cache
|
89
|
-
debug: true # true | false (default: false)
|
90
|
-
# this is the type of file store to be used for this cache.
|
91
|
-
# more adapters can be developed and plugged in as desired
|
92
|
-
adapter: local_memory # local_memory | memcache | file | drb (default: local_memory)
|
93
|
-
# this will marshall objects into and out of the store.
|
94
|
-
# so far yaml is the only supported marshall format.
|
95
|
-
marshall_method: none # none | yaml (default: none)
|
96
|
-
# this sets how long objects will live in the cache before they are auto expired.
|
97
|
-
default_expiry: <%= 24.hours %> # time in seconds (default: 24 hours)
|
98
|
-
# when setting objects into the cache the expiry_swing is +/- to the expiry time.
|
99
|
-
# example: if the expiry time is 1 hour, and the swing is 15 minutes,
|
100
|
-
# objects will go into the cache with an expiry time sometime between 45 mins and 75 mins.
|
101
|
-
expiry_swing: <%= 15.minutes %> # time in seconds (default: 0)
|
102
|
-
# these options get passed on directly to the store.
|
103
|
-
store_options: # listed below are options for memcache
|
104
|
-
c_threshold: 10_000
|
105
|
-
compression: true
|
106
|
-
debug: false
|
107
|
-
readonly: false
|
108
|
-
urlencode: false
|
109
|
-
store_options: # listed below are the options for file
|
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"
|
113
|
-
# configure logging for this cache:
|
114
|
-
logging:
|
115
|
-
# n number of logs can be configured for a cache
|
116
|
-
# their names can be anything you want, it's doesn't matter
|
117
|
-
logger_1:
|
118
|
-
# this sets the type of log you want to write to.
|
119
|
-
# right now the only two options are file and console
|
120
|
-
type: file # console | file (default: none)
|
121
|
-
# if the type is file, you need to configure where the log file is to be written.
|
122
|
-
file: log/memcached.log # relative | absolute path to log file
|
123
|
-
# this sets the level of logging for this cache
|
124
|
-
level: info # debug | info | warn | error | fatal (default: info)
|
125
|
-
logger_2:
|
126
|
-
# this sets the type of log you want to write to.
|
127
|
-
# right now the only two options are file and console
|
128
|
-
type: console # console | file (default: none)
|
129
|
-
# this sets the level of logging for this cache
|
130
|
-
level: error # debug | info | warn | error | fatal (default: info)
|
131
|
-
# set the servers to be used for memcache
|
132
|
-
servers:
|
133
|
-
- 127.0.0.1:11211 # ip:port used for memcache
|
134
|
-
</pre>
|
135
|
-
<p>
|
136
|
-
# if using the mongrel_page_cache_handler gem, you can configure it to use
|
137
|
-
cachetastic.
|
138
|
-
</p>
|
139
|
-
<pre>
|
140
|
-
page_cache_storage: cachetastic # disk | cachetastic (default: cachetastic)
|
141
|
-
</pre>
|
142
|
-
<p>
|
143
|
-
# example of how to override options for page cacheing:
|
144
|
-
</p>
|
145
|
-
<pre>
|
146
|
-
cachetastic_caches_page_cache_options:
|
147
|
-
default_expiry: <%= 1.hour %>
|
148
|
-
expiry_swing: <%= 15.minutes %>
|
149
|
-
</pre>
|
150
|
-
<p>
|
151
|
-
# example of how to override options for rails session cacheing:
|
152
|
-
</p>
|
153
|
-
<pre>
|
154
|
-
cachetastic_caches_rails_session_cache_options:
|
155
|
-
default_expiry: <%= 30.minutes %>
|
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>
|
172
|
-
<h1>Examples:</h1>
|
173
|
-
<pre>
|
174
|
-
class MyAwesomeCache < Cachetastic::Caches::Base
|
175
|
-
end
|
176
|
-
|
177
|
-
MyAwesomeCache.set(1, [1,2,3])
|
178
|
-
MyAwesomeCache.get(1) # => [1,2,3]
|
179
|
-
|
180
|
-
class MyAwesomeCache < Cachetastic::Caches::Base
|
181
|
-
class << self
|
182
|
-
def get(key, x, y)
|
183
|
-
super(key) do
|
184
|
-
n = x + y
|
185
|
-
set(key, n)
|
186
|
-
n
|
187
|
-
end
|
188
|
-
end
|
189
|
-
end
|
190
|
-
end
|
191
|
-
|
192
|
-
MyAwesomeCache.get(1, 2, 4) # => 8
|
193
|
-
MyAwesomeCache.get(1, 4, 4) # => 8
|
194
|
-
</pre>
|
195
|
-
|
196
|
-
</div>
|
197
|
-
|
198
|
-
|
199
|
-
</div>
|
200
|
-
|
201
|
-
|
202
|
-
</div>
|
203
|
-
|
204
|
-
|
205
|
-
<!-- if includes -->
|
206
|
-
|
207
|
-
<div id="section">
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
<!-- if method_list -->
|
217
|
-
|
218
|
-
|
219
|
-
</div>
|
220
|
-
|
221
|
-
|
222
|
-
<div id="validator-badges">
|
223
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
224
|
-
</div>
|
225
|
-
|
226
|
-
</body>
|
227
|
-
</html>
|