doc/classes/Cachetastic/Cacheable/ClassAndInstanceMethods.html in cachetastic-1.7.4 vs doc/classes/Cachetastic/Cacheable/ClassAndInstanceMethods.html in cachetastic-2.0.0

- old
+ new

@@ -53,12 +53,12 @@ <td class="class-name-in-header">Cachetastic::Cacheable::ClassAndInstanceMethods</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> - <a href="../../../files/lib/cachetastic_cacheable_rb.html"> - lib/cachetastic_cacheable.rb + <a href="../../../files/lib/cachetastic/cacheable_rb.html"> + lib/cachetastic/cacheable.rb </a> <br /> </td> </tr> @@ -78,13 +78,13 @@ <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000049">cache_class</a>&nbsp;&nbsp; - <a href="#M000050">cacher</a>&nbsp;&nbsp; - <a href="#M000051">expire_all</a>&nbsp;&nbsp; + <a href="#M000068">cache_class</a>&nbsp;&nbsp; + <a href="#M000069">cacher</a>&nbsp;&nbsp; + <a href="#M000070">expire_all</a>&nbsp;&nbsp; </div> </div> </div> @@ -102,15 +102,15 @@ <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000049" class="method-detail"> - <a name="M000049"></a> + <div id="method-M000068" class="method-detail"> + <a name="M000068"></a> <div class="method-heading"> - <a href="#M000049" class="method-signature"> + <a href="#M000068" class="method-signature"> <span class="method-name">cache_class</span><span class="method-args">()</span> </a> </div> <div class="method-description"> @@ -134,14 +134,14 @@ end Person.cache_class # =&gt; Cachetastic::Cacheable::PersonCache </pre> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000049-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000049-source"> + onclick="toggleCode('M000068-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000068-source"> <pre> - <span class="ruby-comment cmt"># File lib/cachetastic_cacheable.rb, line 39</span> + <span class="ruby-comment cmt"># File lib/cachetastic/cacheable.rb, line 39</span> 39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cache_class</span> 40: <span class="ruby-identifier">n</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span> 41: <span class="ruby-identifier">n</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;Class&quot;</span> 42: <span class="ruby-comment cmt"># puts &quot;n: #{n}&quot;</span> 43: <span class="ruby-identifier">c_name</span> = <span class="ruby-node">&quot;Cachetastic::Cacheable::#{n}Cache&quot;</span> @@ -157,15 +157,15 @@ </pre> </div> </div> </div> - <div id="method-M000050" class="method-detail"> - <a name="M000050"></a> + <div id="method-M000069" class="method-detail"> + <a name="M000069"></a> <div class="method-heading"> - <a href="#M000050" class="method-signature"> + <a href="#M000069" class="method-signature"> <span class="method-name">cacher</span><span class="method-args">(key, expiry = 0) {|| ...}</span> </a> </div> <div class="method-description"> @@ -203,14 +203,14 @@ Person.cacher(&quot;say_hi&quot;) {&quot;Hi There&quot;} # =&gt; &quot;Hi There&quot; Person.get_from_cache(&quot;say_hi&quot;) # =&gt; &quot;Hi There&quot; Cachetastic::Cacheable::PersonCache.get(&quot;say_hi&quot;) # =&gt; &quot;Hi There&quot; </pre> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000050-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000050-source"> + onclick="toggleCode('M000069-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000069-source"> <pre> - <span class="ruby-comment cmt"># File lib/cachetastic_cacheable.rb, line 84</span> + <span class="ruby-comment cmt"># File lib/cachetastic/cacheable.rb, line 84</span> 84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cacher</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">expiry</span> = <span class="ruby-value">0</span>) 85: <span class="ruby-identifier">cache_class</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">key</span>) <span class="ruby-keyword kw">do</span> 86: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span> 87: <span class="ruby-identifier">res</span> = <span class="ruby-keyword kw">yield</span> 88: <span class="ruby-identifier">cache_class</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">res</span>, <span class="ruby-identifier">expiry</span>) @@ -220,15 +220,15 @@ </pre> </div> </div> </div> - <div id="method-M000051" class="method-detail"> - <a name="M000051"></a> + <div id="method-M000070" class="method-detail"> + <a name="M000070"></a> <div class="method-heading"> - <a href="#M000051" class="method-signature"> + <a href="#M000070" class="method-signature"> <span class="method-name">expire_all</span><span class="method-args">()</span> </a> </div> <div class="method-description"> @@ -255,13 +255,13 @@ Person.get_from_cache(1) # =&gt; &quot;one&quot; Cachetastic::Cacheable::PersonCache.expire_all Person.get_from_cache(1) # =&gt; nil </pre> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000051-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000051-source"> + onclick="toggleCode('M000070-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000070-source"> <pre> - <span class="ruby-comment cmt"># File lib/cachetastic_cacheable.rb, line 112</span> + <span class="ruby-comment cmt"># File lib/cachetastic/cacheable.rb, line 112</span> 112: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expire_all</span> 113: <span class="ruby-identifier">cache_class</span>.<span class="ruby-identifier">expire_all</span> 114: <span class="ruby-keyword kw">end</span> </pre> </div> \ No newline at end of file