Permalink
Browse files

rebuild docs

  • Loading branch information...
1 parent e7cc112 commit 15d3ca009a67124230a7807573410b7abf549222 @rtomayko committed Dec 24, 2010
@@ -43,10 +43,10 @@
<a href="../../files/lib/rack/cache/key_rb.html">lib/rack/cache/key.rb</a>
</li>
<li class='other'>
- <a href="../../files/lib/rack/cache/metastore_rb.html">lib/rack/cache/metastore.rb</a>
+ <a href="../../files/lib/rack/cache/options_rb.html">lib/rack/cache/options.rb</a>
</li>
<li class='other'>
- <a href="../../files/lib/rack/cache/options_rb.html">lib/rack/cache/options.rb</a>
+ <a href="../../files/lib/rack/cache/metastore_rb.html">lib/rack/cache/metastore.rb</a>
</li>
<li class='other'>
<a href="../../files/lib/rack/cache/request_rb.html">lib/rack/cache/request.rb</a>
@@ -51,9 +51,9 @@ <h1 class='name'>
<div id='section'>
<div id='class-list'>
<h2>Classes and Modules</h2>
+ Class <a href="EntityStore/Dalli.html" class="link">Rack::Cache::EntityStore::Dalli</a><br />
Class <a href="EntityStore/Disk.html" class="link">Rack::Cache::EntityStore::Disk</a><br />
Class <a href="EntityStore/Heap.html" class="link">Rack::Cache::EntityStore::Heap</a><br />
- Class <a href="EntityStore/MemCache.html" class="link">Rack::Cache::EntityStore::MemCache</a><br />
Class <a href="EntityStore/MemCacheBase.html" class="link">Rack::Cache::EntityStore::MemCacheBase</a><br />
Class <a href="EntityStore/MemCached.html" class="link">Rack::Cache::EntityStore::MemCached</a><br />
</div>
@@ -0,0 +1,143 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang='en'>
+ <head>
+ <title>: Rack::Cache::EntityStore::Dalli [Rack::Cache API Documentation]</title>
+ <meta content='text/html; charset=utf8' http-equiv='Content-Type'>
+ <link href='../../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
+ <script type='text/javascript'>
+ //<![CDATA[
+ function popupCode(url) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode(id) {
+ var code = document.getElementById(id)
+
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
+ return true
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
+ //]]>
+ </script>
+ </head>
+ <body class='page'>
+ <div class='class' id='wrapper'>
+ <div class='header'>
+ <h1 class='name'>
+ <span class='type'>Class</span>
+ Rack::Cache::EntityStore::Dalli
+ </h1>
+ <ol class='paths'>
+ <li>
+ <a href="../../../../files/lib/rack/cache/entitystore_rb.html">lib/rack/cache/entitystore.rb</a>
+ </li>
+ </ol>
+ <div class='parent'>
+ Parent:
+ <strong><a href="MemCacheBase.html">Rack::Cache::EntityStore::MemCacheBase</a></strong>
+ </div>
+ </div>
+ <div id='content'>
+ <div id='text'>
+ <div id='description'>
+ <p>
+ Uses the <a href="Dalli.html">Dalli</a> ruby library. This is the default
+ unless the memcached library has already been required.
+ </p>
+ </div>
+ <div id='method-list'>
+ <h2>Methods</h2>
+ <h3>public class</h3>
+ <ol>
+ <li><a href="#M000112">new</a></li>
+ </ol>
+ <h3>public instance</h3>
+ <ol>
+ <li><a href="#M000113">exist?</a></li>
+ <li><a href="#M000116">purge</a></li>
+ <li><a href="#M000114">read</a></li>
+ <li><a href="#M000115">write</a></li>
+ </ol>
+ </div>
+ <div id='section'>
+ <div id='methods'>
+ <h2>Public class methods</h2>
+ <div class='method public-class' id='method-M000112'>
+ <a name='M000112'></a>
+ <div class='synopsis'>
+ <span class='name'>new</span>
+ <span class='arguments'>(server=&quot;localhost:11211&quot;, options={})</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000112-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000112-source'> <span class="ruby-comment cmt"># File lib/rack/cache/entitystore.rb, line 210</span>&#x000A;210: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">server</span>=<span class="ruby-value str">&quot;localhost:11211&quot;</span>, <span class="ruby-identifier">options</span>={})&#x000A;211: <span class="ruby-ivar">@cache</span> =&#x000A;212: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">server</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:stats</span>)&#x000A;213: <span class="ruby-identifier">server</span>&#x000A;214: <span class="ruby-keyword kw">else</span>&#x000A;215: <span class="ruby-identifier">require</span> <span class="ruby-value str">'dalli'</span>&#x000A;216: <span class="ruby-operator">::</span><span class="ruby-constant">Dalli</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">options</span>)&#x000A;217: <span class="ruby-keyword kw">end</span>&#x000A;218: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <h2>Public instance methods</h2>
+ <div class='method public-instance' id='method-M000113'>
+ <a name='M000113'></a>
+ <div class='synopsis'>
+ <span class='name'>exist?</span>
+ <span class='arguments'>(key)</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000113-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000113-source'> <span class="ruby-comment cmt"># File lib/rack/cache/entitystore.rb, line 220</span>&#x000A;220: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">key</span>)&#x000A;221: <span class="ruby-operator">!</span><span class="ruby-identifier">cache</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">key</span>).<span class="ruby-identifier">nil?</span>&#x000A;222: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <div class='method public-instance' id='method-M000116'>
+ <a name='M000116'></a>
+ <div class='synopsis'>
+ <span class='name'>purge</span>
+ <span class='arguments'>(key)</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000116-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000116-source'> <span class="ruby-comment cmt"># File lib/rack/cache/entitystore.rb, line 234</span>&#x000A;234: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">purge</span>(<span class="ruby-identifier">key</span>)&#x000A;235: <span class="ruby-identifier">cache</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>)&#x000A;236: <span class="ruby-keyword kw">nil</span>&#x000A;237: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <div class='method public-instance' id='method-M000114'>
+ <a name='M000114'></a>
+ <div class='synopsis'>
+ <span class='name'>read</span>
+ <span class='arguments'>(key)</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000114-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000114-source'> <span class="ruby-comment cmt"># File lib/rack/cache/entitystore.rb, line 224</span>&#x000A;224: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span>(<span class="ruby-identifier">key</span>)&#x000A;225: <span class="ruby-identifier">cache</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">key</span>)&#x000A;226: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <div class='method public-instance' id='method-M000115'>
+ <a name='M000115'></a>
+ <div class='synopsis'>
+ <span class='name'>write</span>
+ <span class='arguments'>(body)</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000115-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000115-source'> <span class="ruby-comment cmt"># File lib/rack/cache/entitystore.rb, line 228</span>&#x000A;228: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">body</span>)&#x000A;229: <span class="ruby-identifier">buf</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>&#x000A;230: <span class="ruby-identifier">key</span>, <span class="ruby-identifier">size</span> = <span class="ruby-identifier">slurp</span>(<span class="ruby-identifier">body</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">part</span><span class="ruby-operator">|</span> <span class="ruby-identifier">buf</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">part</span>) }&#x000A;231: [<span class="ruby-identifier">key</span>, <span class="ruby-identifier">size</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cache</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">buf</span>.<span class="ruby-identifier">string</span>)&#x000A;232: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div id='footer-push'></div>
+ </div>
+ <div id='footer'>
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
+ </div>
+ </body>
+</html>
@@ -86,9 +86,9 @@ <h1 class='name'>
<div id='section'>
<div id='class-list'>
<h2>Classes and Modules</h2>
+ Class <a href="MetaStore/Dalli.html" class="link">Rack::Cache::MetaStore::Dalli</a><br />
Class <a href="MetaStore/Disk.html" class="link">Rack::Cache::MetaStore::Disk</a><br />
Class <a href="MetaStore/Heap.html" class="link">Rack::Cache::MetaStore::Heap</a><br />
- Class <a href="MetaStore/MemCache.html" class="link">Rack::Cache::MetaStore::MemCache</a><br />
Class <a href="MetaStore/MemCacheBase.html" class="link">Rack::Cache::MetaStore::MemCacheBase</a><br />
Class <a href="MetaStore/MemCached.html" class="link">Rack::Cache::MetaStore::MemCached</a><br />
</div>
@@ -0,0 +1,123 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang='en'>
+ <head>
+ <title>: Rack::Cache::MetaStore::Dalli [Rack::Cache API Documentation]</title>
+ <meta content='text/html; charset=utf8' http-equiv='Content-Type'>
+ <link href='../../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
+ <script type='text/javascript'>
+ //<![CDATA[
+ function popupCode(url) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode(id) {
+ var code = document.getElementById(id)
+
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
+ return true
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
+ //]]>
+ </script>
+ </head>
+ <body class='page'>
+ <div class='class' id='wrapper'>
+ <div class='header'>
+ <h1 class='name'>
+ <span class='type'>Class</span>
+ Rack::Cache::MetaStore::Dalli
+ </h1>
+ <ol class='paths'>
+ <li>
+ <a href="../../../../files/lib/rack/cache/metastore_rb.html">lib/rack/cache/metastore.rb</a>
+ </li>
+ </ol>
+ <div class='parent'>
+ Parent:
+ <strong><a href="MemCacheBase.html">Rack::Cache::MetaStore::MemCacheBase</a></strong>
+ </div>
+ </div>
+ <div id='content'>
+ <div id='text'>
+ <div id='method-list'>
+ <h2>Methods</h2>
+ <h3>public class</h3>
+ <ol>
+ <li><a href="#M000089">new</a></li>
+ </ol>
+ <h3>public instance</h3>
+ <ol>
+ <li><a href="#M000092">purge</a></li>
+ <li><a href="#M000090">read</a></li>
+ <li><a href="#M000091">write</a></li>
+ </ol>
+ </div>
+ <div id='section'>
+ <div id='methods'>
+ <h2>Public class methods</h2>
+ <div class='method public-class' id='method-M000089'>
+ <a name='M000089'></a>
+ <div class='synopsis'>
+ <span class='name'>new</span>
+ <span class='arguments'>(server=&quot;localhost:11211&quot;, options={})</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000089-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000089-source'> <span class="ruby-comment cmt"># File lib/rack/cache/metastore.rb, line 305</span>&#x000A;305: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">server</span>=<span class="ruby-value str">&quot;localhost:11211&quot;</span>, <span class="ruby-identifier">options</span>={})&#x000A;306: <span class="ruby-ivar">@cache</span> =&#x000A;307: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">server</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:stats</span>)&#x000A;308: <span class="ruby-identifier">server</span>&#x000A;309: <span class="ruby-keyword kw">else</span>&#x000A;310: <span class="ruby-identifier">require</span> <span class="ruby-value str">'dalli'</span>&#x000A;311: <span class="ruby-operator">::</span><span class="ruby-constant">Dalli</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">options</span>)&#x000A;312: <span class="ruby-keyword kw">end</span>&#x000A;313: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <h2>Public instance methods</h2>
+ <div class='method public-instance' id='method-M000092'>
+ <a name='M000092'></a>
+ <div class='synopsis'>
+ <span class='name'>purge</span>
+ <span class='arguments'>(key)</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000092-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000092-source'> <span class="ruby-comment cmt"># File lib/rack/cache/metastore.rb, line 325</span>&#x000A;325: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">purge</span>(<span class="ruby-identifier">key</span>)&#x000A;326: <span class="ruby-identifier">cache</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">hexdigest</span>(<span class="ruby-identifier">key</span>))&#x000A;327: <span class="ruby-keyword kw">nil</span>&#x000A;328: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <div class='method public-instance' id='method-M000090'>
+ <a name='M000090'></a>
+ <div class='synopsis'>
+ <span class='name'>read</span>
+ <span class='arguments'>(key)</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000090-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000090-source'> <span class="ruby-comment cmt"># File lib/rack/cache/metastore.rb, line 315</span>&#x000A;315: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span>(<span class="ruby-identifier">key</span>)&#x000A;316: <span class="ruby-identifier">key</span> = <span class="ruby-identifier">hexdigest</span>(<span class="ruby-identifier">key</span>)&#x000A;317: <span class="ruby-identifier">cache</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">key</span>) <span class="ruby-operator">||</span> []&#x000A;318: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <div class='method public-instance' id='method-M000091'>
+ <a name='M000091'></a>
+ <div class='synopsis'>
+ <span class='name'>write</span>
+ <span class='arguments'>(key, entries)</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000091-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000091-source'> <span class="ruby-comment cmt"># File lib/rack/cache/metastore.rb, line 320</span>&#x000A;320: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">entries</span>)&#x000A;321: <span class="ruby-identifier">key</span> = <span class="ruby-identifier">hexdigest</span>(<span class="ruby-identifier">key</span>)&#x000A;322: <span class="ruby-identifier">cache</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">entries</span>)&#x000A;323: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div id='footer-push'></div>
+ </div>
+ <div id='footer'>
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
+ </div>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 15d3ca0

Please sign in to comment.