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.
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,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: &lt;%= 24.hours %&gt; # 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: &lt;%= 15.minutes %&gt; # 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: &quot;druby://127.0.0.1:61676&quot;
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: &lt;%= 1.hour %&gt;
148
- expiry_swing: &lt;%= 15.minutes %&gt;
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: &lt;%= 30.minutes %&gt;
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&#8216;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 &lt;host&gt; -p
170
- &lt;port&gt;
171
- </p>
172
- <h1>Examples:</h1>
173
- <pre>
174
- class MyAwesomeCache &lt; Cachetastic::Caches::Base
175
- end
176
-
177
- MyAwesomeCache.set(1, [1,2,3])
178
- MyAwesomeCache.get(1) # =&gt; [1,2,3]
179
-
180
- class MyAwesomeCache &lt; Cachetastic::Caches::Base
181
- class &lt;&lt; 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) # =&gt; 8
193
- MyAwesomeCache.get(1, 4, 4) # =&gt; 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&nbsp;&nbsp;
203
- memcache&nbsp;&nbsp;
204
- singleton&nbsp;&nbsp;
205
- logger&nbsp;&nbsp;
206
- yaml&nbsp;&nbsp;
207
- zlib&nbsp;&nbsp;
208
- pp&nbsp;&nbsp;
209
- cachetastic_connection&nbsp;&nbsp;
210
- cachetastic_logger&nbsp;&nbsp;
211
- caches/cachetastic_caches_base&nbsp;&nbsp;
212
- caches/cachetastic_caches_page_cache&nbsp;&nbsp;
213
- caches/cachetastic_caches_rails_session_cache&nbsp;&nbsp;
214
- errors/cachetastic_errors_unsupported_adapter&nbsp;&nbsp;
215
- adapters/cachetastic_adapters_base&nbsp;&nbsp;
216
- adapters/cachetastic_adapters_store_object&nbsp;&nbsp;
217
- adapters/cachetastic_adapters_memcache&nbsp;&nbsp;
218
- adapters/cachetastic_adapters_local_memory&nbsp;&nbsp;
219
- adapters/cachetastic_adapters_file&nbsp;&nbsp;
220
- adapters/cachetastic_adapters_drb&nbsp;&nbsp;
221
- helpers/cachetastic_helpers_active_record&nbsp;&nbsp;
222
- rails_extensions/cachetastic_active_record_base&nbsp;&nbsp;
223
- rails_extensions/cgi_session_cachetastic_store&nbsp;&nbsp;
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>