cachetastic 1.2.3 → 1.2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. data/README +3 -7
  2. data/bin/cachetastic_drb_server +18 -3
  3. data/lib/adapters/cachetastic_adapters_base.rb +2 -1
  4. data/lib/adapters/cachetastic_adapters_drb.rb +4 -18
  5. data/lib/adapters/cachetastic_adapters_file.rb +0 -3
  6. data/lib/adapters/cachetastic_adapters_html_file.rb +119 -0
  7. data/lib/caches/cachetastic_caches_base.rb +24 -18
  8. data/lib/caches/cachetastic_caches_mack_session_cache.rb +3 -0
  9. data/lib/cachetastic.rb +2 -0
  10. data/lib/cachetastic_logger.rb +1 -1
  11. data/lib/tasks/rubyforge_config.yml +1 -1
  12. metadata +13 -111
  13. data/doc/classes/ActiveRecord/Base.html +0 -227
  14. data/doc/classes/ActiveRecord/Base.src/M000001.html +0 -25
  15. data/doc/classes/ActiveRecord/Base.src/M000002.html +0 -18
  16. data/doc/classes/ActiveRecord/Base.src/M000003.html +0 -18
  17. data/doc/classes/ActiveRecord/Base.src/M000004.html +0 -18
  18. data/doc/classes/ActiveRecord/Base.src/M000005.html +0 -18
  19. data/doc/classes/CGI/Session/CachetasticStore.html +0 -122
  20. data/doc/classes/Cachetastic/Adapters/Base.html +0 -260
  21. data/doc/classes/Cachetastic/Adapters/Base.src/M000024.html +0 -24
  22. data/doc/classes/Cachetastic/Adapters/Base.src/M000025.html +0 -20
  23. data/doc/classes/Cachetastic/Adapters/Base.src/M000026.html +0 -21
  24. data/doc/classes/Cachetastic/Adapters/Drb.html +0 -244
  25. data/doc/classes/Cachetastic/Adapters/Drb.src/M000027.html +0 -22
  26. data/doc/classes/Cachetastic/Adapters/Drb.src/M000028.html +0 -18
  27. data/doc/classes/Cachetastic/Adapters/Drb.src/M000029.html +0 -18
  28. data/doc/classes/Cachetastic/Adapters/Drb.src/M000030.html +0 -26
  29. data/doc/classes/Cachetastic/Adapters/Drb.src/M000031.html +0 -18
  30. data/doc/classes/Cachetastic/Adapters/Drb.src/M000032.html +0 -25
  31. data/doc/classes/Cachetastic/Adapters/File.html +0 -265
  32. data/doc/classes/Cachetastic/Adapters/File.src/M000033.html +0 -18
  33. data/doc/classes/Cachetastic/Adapters/File.src/M000034.html +0 -20
  34. data/doc/classes/Cachetastic/Adapters/File.src/M000035.html +0 -19
  35. data/doc/classes/Cachetastic/Adapters/File.src/M000036.html +0 -35
  36. data/doc/classes/Cachetastic/Adapters/File.src/M000037.html +0 -21
  37. data/doc/classes/Cachetastic/Adapters/File.src/M000038.html +0 -25
  38. data/doc/classes/Cachetastic/Adapters/LocalMemory.html +0 -238
  39. data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000018.html +0 -18
  40. data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000019.html +0 -18
  41. data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000020.html +0 -18
  42. data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000021.html +0 -26
  43. data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000022.html +0 -18
  44. data/doc/classes/Cachetastic/Adapters/LocalMemory.src/M000023.html +0 -25
  45. data/doc/classes/Cachetastic/Adapters/Memcache.html +0 -335
  46. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000007.html +0 -19
  47. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000008.html +0 -18
  48. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000009.html +0 -18
  49. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000010.html +0 -18
  50. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000011.html +0 -18
  51. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000012.html +0 -18
  52. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000013.html +0 -24
  53. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000014.html +0 -19
  54. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000015.html +0 -20
  55. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000016.html +0 -20
  56. data/doc/classes/Cachetastic/Adapters/Memcache.src/M000017.html +0 -24
  57. data/doc/classes/Cachetastic/Caches/Base.html +0 -441
  58. data/doc/classes/Cachetastic/Caches/Base.src/M000040.html +0 -18
  59. data/doc/classes/Cachetastic/Caches/Base.src/M000041.html +0 -43
  60. data/doc/classes/Cachetastic/Caches/Base.src/M000042.html +0 -23
  61. data/doc/classes/Cachetastic/Caches/Base.src/M000043.html +0 -20
  62. data/doc/classes/Cachetastic/Caches/Base.src/M000044.html +0 -19
  63. data/doc/classes/Cachetastic/Caches/Base.src/M000045.html +0 -18
  64. data/doc/classes/Cachetastic/Caches/Base.src/M000046.html +0 -18
  65. data/doc/classes/Cachetastic/Caches/Base.src/M000047.html +0 -18
  66. data/doc/classes/Cachetastic/Caches/Base.src/M000048.html +0 -23
  67. data/doc/classes/Cachetastic/Caches/Base.src/M000049.html +0 -18
  68. data/doc/classes/Cachetastic/Caches/Base.src/M000050.html +0 -18
  69. data/doc/classes/Cachetastic/Caches/Base.src/M000051.html +0 -18
  70. data/doc/classes/Cachetastic/Caches/Base.src/M000052.html +0 -28
  71. data/doc/classes/Cachetastic/Caches/Base/RegisteredCaches.html +0 -168
  72. data/doc/classes/Cachetastic/Caches/Base/RegisteredCaches.src/M000053.html +0 -18
  73. data/doc/classes/Cachetastic/Caches/PageCache.html +0 -121
  74. data/doc/classes/Cachetastic/Caches/RailsSessionCache.html +0 -145
  75. data/doc/classes/Cachetastic/Caches/RailsSessionCache.src/M000039.html +0 -18
  76. data/doc/classes/Cachetastic/Connection.html +0 -186
  77. data/doc/classes/Cachetastic/Connection.src/M000054.html +0 -18
  78. data/doc/classes/Cachetastic/Connection.src/M000055.html +0 -24
  79. data/doc/classes/Cachetastic/Errors/UnsupportedAdapter.html +0 -137
  80. data/doc/classes/Cachetastic/Errors/UnsupportedAdapter.src/M000006.html +0 -18
  81. data/doc/classes/Cachetastic/Logger.html +0 -174
  82. data/doc/classes/Cachetastic/Logger.src/M000056.html +0 -22
  83. data/doc/created.rid +0 -1
  84. data/doc/files/init_rb.html +0 -227
  85. data/doc/files/lib/adapters/cachetastic_adapters_base_rb.html +0 -139
  86. data/doc/files/lib/adapters/cachetastic_adapters_drb_rb.html +0 -115
  87. data/doc/files/lib/adapters/cachetastic_adapters_file_rb.html +0 -121
  88. data/doc/files/lib/adapters/cachetastic_adapters_local_memory_rb.html +0 -109
  89. data/doc/files/lib/adapters/cachetastic_adapters_memcache_rb.html +0 -127
  90. data/doc/files/lib/adapters/cachetastic_adapters_store_object_rb.html +0 -101
  91. data/doc/files/lib/caches/cachetastic_caches_base_rb.html +0 -108
  92. data/doc/files/lib/caches/cachetastic_caches_page_cache_rb.html +0 -109
  93. data/doc/files/lib/caches/cachetastic_caches_rails_session_cache_rb.html +0 -107
  94. data/doc/files/lib/cachetastic_connection_rb.html +0 -107
  95. data/doc/files/lib/cachetastic_logger_rb.html +0 -107
  96. data/doc/files/lib/cachetastic_rb.html +0 -255
  97. data/doc/files/lib/errors/cachetastic_errors_unsupported_adapter_rb.html +0 -101
  98. data/doc/files/lib/helpers/cachetastic_helpers_active_record_rb.html +0 -101
  99. data/doc/files/lib/rails_extensions/cachetastic_active_record_base_rb.html +0 -101
  100. data/doc/files/lib/rails_extensions/cgi_session_cachetastic_store_rb.html +0 -109
  101. data/doc/fr_class_index.html +0 -40
  102. data/doc/fr_file_index.html +0 -43
  103. data/doc/fr_method_index.html +0 -82
  104. data/doc/index.html +0 -24
  105. data/doc/rdoc-style.css +0 -208
@@ -1,139 +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_adapters_base.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>cachetastic_adapters_base.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/adapters/cachetastic_adapters_base.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Thu Jan 31 10:17:50 -0500 2008</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
- <div id="description">
72
- <p>
73
- This class is the interface used to develop adapters for stores. Stores are
74
- where the data is actually held. These could be local memory, memcached, a
75
- database, the file system, etc&#8230; If you implement this API, then you
76
- should be able to plug in different stores for your caches without having
77
- to change any of your code.
78
- </p>
79
- <h3>Methods that need to be implemented:</h3>
80
- <ul>
81
- <li>setup - used to setup the implementation of the adapter.
82
-
83
- </li>
84
- <li>set(key, object, expiry) - sets an object into the store using the given
85
- key and the expiry time.
86
-
87
- </li>
88
- <li>get(key) - returns an object from the store for a given key.
89
-
90
- </li>
91
- <li>delete(key, delay) - deletes an object from the store for a given key. If
92
- the store supports it, a delay can be used.
93
-
94
- </li>
95
- <li>expire_all - expires all objects in the store for a given cache.
96
-
97
- </li>
98
- <li>stats - returns statistics for the store.
99
-
100
- </li>
101
- <li>valid? - used to test whether or not the store is still valid. If this
102
- returns false a new instance of the adapter is created by <a
103
- href="../../../classes/Cachetastic/Connection.html">Cachetastic::Connection</a>
104
-
105
- </li>
106
- </ul>
107
-
108
- </div>
109
-
110
-
111
- </div>
112
-
113
-
114
- </div>
115
-
116
-
117
- <!-- if includes -->
118
-
119
- <div id="section">
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
- <!-- if method_list -->
129
-
130
-
131
- </div>
132
-
133
-
134
- <div id="validator-badges">
135
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
136
- </div>
137
-
138
- </body>
139
- </html>
@@ -1,115 +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_adapters_drb.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>cachetastic_adapters_drb.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/adapters/cachetastic_adapters_drb.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Thu Jan 31 10:17:50 -0500 2008</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
- <div id="description">
72
- <p>
73
- This adapter uses Cachetastic::Drb::Server as it&#8216;s backing. The
74
- configuration for this should look something like this:
75
- </p>
76
- <pre>
77
- my_awesome_cache_options:
78
- debug: false
79
- adapter: drb
80
- store_options:
81
- host: druby://127.0.0.1:61676
82
- </pre>
83
-
84
- </div>
85
-
86
-
87
- </div>
88
-
89
-
90
- </div>
91
-
92
-
93
- <!-- if includes -->
94
-
95
- <div id="section">
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
- <!-- if method_list -->
105
-
106
-
107
- </div>
108
-
109
-
110
- <div id="validator-badges">
111
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
112
- </div>
113
-
114
- </body>
115
- </html>
@@ -1,121 +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_adapters_file.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>cachetastic_adapters_file.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/adapters/cachetastic_adapters_file.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Tue Jan 29 14:56:03 -0500 2008</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
- <div id="description">
72
- <p>
73
- This adapter uses the file system as it&#8216;s backing. The configuration
74
- for this should look something like this:
75
- </p>
76
- <pre>
77
- my_awesome_cache_options:
78
- debug: false
79
- adapter: file
80
- marshall_method: none
81
- default_expiry: &lt;%= 24.hours %&gt;
82
- store_options:
83
- dir: /usr/local/caches/
84
- logging:
85
- logger_1:
86
- type: file
87
- file: log/file_store_cache.log
88
- </pre>
89
-
90
- </div>
91
-
92
-
93
- </div>
94
-
95
-
96
- </div>
97
-
98
-
99
- <!-- if includes -->
100
-
101
- <div id="section">
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- <!-- if method_list -->
111
-
112
-
113
- </div>
114
-
115
-
116
- <div id="validator-badges">
117
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
118
- </div>
119
-
120
- </body>
121
- </html>
@@ -1,109 +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_adapters_local_memory.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>cachetastic_adapters_local_memory.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/adapters/cachetastic_adapters_local_memory.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Tue Jan 29 17:47:42 -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
- An adapter/store that keeps objects in local memory. This is great for
74
- development/testing, but probably shouldn&#8216;t be put into production.
75
- It&#8216;s also a very good example of how to write a adapter.
76
- </p>
77
-
78
- </div>
79
-
80
-
81
- </div>
82
-
83
-
84
- </div>
85
-
86
-
87
- <!-- if includes -->
88
-
89
- <div id="section">
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <!-- if method_list -->
99
-
100
-
101
- </div>
102
-
103
-
104
- <div id="validator-badges">
105
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
106
- </div>
107
-
108
- </body>
109
- </html>