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,107 +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: cachetastic_caches_rails_session_cache.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_caches_rails_session_cache.rb</h1>
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/caches/cachetastic_caches_rails_session_cache.rb
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<tr class="top-aligned-row">
|
58
|
-
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>Tue Jan 29 16:54:24 -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
|
-
Used for storing Rails sessions.
|
74
|
-
</p>
|
75
|
-
|
76
|
-
</div>
|
77
|
-
|
78
|
-
|
79
|
-
</div>
|
80
|
-
|
81
|
-
|
82
|
-
</div>
|
83
|
-
|
84
|
-
|
85
|
-
<!-- if includes -->
|
86
|
-
|
87
|
-
<div id="section">
|
88
|
-
|
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>
|
@@ -1,107 +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: cachetastic_connection.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_connection.rb</h1>
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/cachetastic_connection.rb
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<tr class="top-aligned-row">
|
58
|
-
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>Tue Jan 29 10:52:52 -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 class caches adapter objects for each cache in the system.
|
74
|
-
</p>
|
75
|
-
|
76
|
-
</div>
|
77
|
-
|
78
|
-
|
79
|
-
</div>
|
80
|
-
|
81
|
-
|
82
|
-
</div>
|
83
|
-
|
84
|
-
|
85
|
-
<!-- if includes -->
|
86
|
-
|
87
|
-
<div id="section">
|
88
|
-
|
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>
|
@@ -1,107 +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: cachetastic_logger.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_logger.rb</h1>
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/cachetastic_logger.rb
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<tr class="top-aligned-row">
|
58
|
-
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>Tue Jan 29 10:53:06 -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 class handles logging for the caches and their adapters.
|
74
|
-
</p>
|
75
|
-
|
76
|
-
</div>
|
77
|
-
|
78
|
-
|
79
|
-
</div>
|
80
|
-
|
81
|
-
|
82
|
-
</div>
|
83
|
-
|
84
|
-
|
85
|
-
<!-- if includes -->
|
86
|
-
|
87
|
-
<div id="section">
|
88
|
-
|
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>
|
@@ -1,255 +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: cachetastic.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.rb</h1>
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/cachetastic.rb
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<tr class="top-aligned-row">
|
58
|
-
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>Tue Jan 29 17:46:48 -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
|
-
<div id="requires-list">
|
199
|
-
<h3 class="section-bar">Required files</h3>
|
200
|
-
|
201
|
-
<div class="name-list">
|
202
|
-
rubygems
|
203
|
-
memcache
|
204
|
-
singleton
|
205
|
-
logger
|
206
|
-
yaml
|
207
|
-
zlib
|
208
|
-
pp
|
209
|
-
cachetastic_connection
|
210
|
-
cachetastic_logger
|
211
|
-
caches/cachetastic_caches_base
|
212
|
-
caches/cachetastic_caches_page_cache
|
213
|
-
caches/cachetastic_caches_rails_session_cache
|
214
|
-
errors/cachetastic_errors_unsupported_adapter
|
215
|
-
adapters/cachetastic_adapters_base
|
216
|
-
adapters/cachetastic_adapters_store_object
|
217
|
-
adapters/cachetastic_adapters_memcache
|
218
|
-
adapters/cachetastic_adapters_local_memory
|
219
|
-
adapters/cachetastic_adapters_file
|
220
|
-
adapters/cachetastic_adapters_drb
|
221
|
-
helpers/cachetastic_helpers_active_record
|
222
|
-
rails_extensions/cachetastic_active_record_base
|
223
|
-
rails_extensions/cgi_session_cachetastic_store
|
224
|
-
</div>
|
225
|
-
</div>
|
226
|
-
|
227
|
-
</div>
|
228
|
-
|
229
|
-
|
230
|
-
</div>
|
231
|
-
|
232
|
-
|
233
|
-
<!-- if includes -->
|
234
|
-
|
235
|
-
<div id="section">
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
<!-- if method_list -->
|
245
|
-
|
246
|
-
|
247
|
-
</div>
|
248
|
-
|
249
|
-
|
250
|
-
<div id="validator-badges">
|
251
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
252
|
-
</div>
|
253
|
-
|
254
|
-
</body>
|
255
|
-
</html>
|