root/site_resources/oldapi/cherrypy.lib.filter.cachefilter-module.html

Revision 1733, 8.2 kB (checked in by kevin, 2 years ago)

various resources used for building the site

Line 
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3           "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
6   <title>cherrypy.lib.filter.cachefilter</title>
7   <link rel="stylesheet" href="epydoc.css" type="text/css"></link>
8 </head>
9 <body bgcolor="white" text="black" link="blue" vlink="#204080"
10       alink="#204080">
11
12 <!-- =========== START OF NAVBAR =========== -->
13 <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
14   <tr valign="center">
15     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
16     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
17     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
18     <th class="navbar" align="right" width="100%">
19       <table border="0" cellpadding="0" cellspacing="0">
20       <tr><th class="navbar" align="center">
21         <p class="nomargin">
22           <a class="navbar" target="_top" href="http://www.turbogears.org">TurboGears</a>
23       </p></th></tr></table>
24     </th>
25   </tr>
26 </table>
27 <table width="100%" cellpadding="0" cellspacing="0">
28   <tr valign="top">
29     <td width="100%">
30       <font size="-1"><b class="breadcrumbs">
31         <a href="cherrypy-module.html">Package&nbsp;cherrypy</a> ::
32         <a href="cherrypy.lib-module.html">Package&nbsp;lib</a> ::
33         <a href="cherrypy.lib.filter-module.html">Package&nbsp;filter</a> ::
34         Module&nbsp;cachefilter
35       </b></font></br>
36     </td>
37     <td><table cellpadding="0" cellspacing="0">
38       <tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a>&nbsp;|&nbsp;<a href="cherrypy.lib.filter.cachefilter-module.html" target="_top">no&nbsp;frames</a>]</font></td></tr>
39     </table></td>
40 </tr></table>
41
42 <!-- =========== START OF MODULE DESCRIPTION =========== -->
43 <h2 class="module">Module cherrypy.lib.filter.cachefilter <a href="source/cherrypy.lib.filter.cachefilter-module.html" class="source">[source]</a></h2>
44
45 <pre class="literalblock">
46 Copyright (c) 2004, CherryPy Team (team&#64;cherrypy.org)
47 All rights reserved.
48
49 Redistribution and use in source and binary forms, with or without modification,
50 are permitted provided that the following conditions are met:
51
52     * Redistributions of source code must retain the above copyright notice,
53       this list of conditions and the following disclaimer.
54     * Redistributions in binary form must reproduce the above copyright notice,
55       this list of conditions and the following disclaimer in the documentation
56       and/or other materials provided with the distribution.
57     * Neither the name of the CherryPy Team nor the names of its contributors
58       may be used to endorse or promote products derived from this software
59       without specific prior written permission.
60
61 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND
62 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
63 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
64 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
65 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
66 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
67 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
68 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
69 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
70 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
71 </pre>
72 <hr/>
73
74 <!-- =========== START OF CLASSES =========== -->
75 <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
76 <tr bgcolor="#70b0f0" class="summary">
77   <th colspan="2">Classes</th></tr>
78 <tr><td width="15%">
79   <b><a href="cherrypy.lib.filter.cachefilter.CacheFilter-class.html"><code>CacheFilter</code></a></b></td>
80   <td>If the page is already stored in the cache, serves the contents.</td></tr>
81 <tr><td width="15%">
82   <b><a href="cherrypy.lib.filter.cachefilter.CacheStats-class.html"><code>CacheStats</code></a></b></td>
83   <td>&nbsp;</td></tr>
84 <tr><td width="15%">
85   <b><a href="cherrypy.lib.filter.cachefilter.MemoryCache-class.html"><code>MemoryCache</code></a></b></td>
86   <td>&nbsp;</td></tr>
87 </table><br />
88
89
90 <!-- =========== START OF FUNCTION SUMMARY =========== -->
91 <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
92 <tr bgcolor="#70b0f0" class="summary">
93   <th colspan="2">Function Summary</th></tr>
94 <tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
95   <td><code><a name="defaultCacheKey"></a><span class="summary-sig"><span class="summary-sig-name">defaultCacheKey</span>()</span></code>
96  <a href="source/cherrypy.lib.filter.cachefilter-module.html#35" class="source">[source]</a>
97 </td></tr>
98 <tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
99   <td><code><span class="summary-sig"><a href="cherrypy.lib.filter.cachefilter-module.html#formatSize" class="summary-sig-name"><code>formatSize</code></a>(<span class=summary-sig-arg>n</span>)</span></code>
100  <a href="source/cherrypy.lib.filter.cachefilter-module.html#181" class="source">[source]</a>
101 <br />
102 formats a number as a memory size, in bytes, kbytes, MB, GB)</td></tr>
103 <tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
104   <td><code><span class="summary-sig"><a href="cherrypy.lib.filter.cachefilter-module.html#percentual" class="summary-sig-name"><code>percentual</code></a>(<span class=summary-sig-arg>n</span>,
105           <span class=summary-sig-arg>d</span>)</span></code>
106  <a href="source/cherrypy.lib.filter.cachefilter-module.html#174" class="source">[source]</a>
107 <br />
108 calculates the percentual, dealing with div by zeros</td></tr>
109 </table><br />
110
111
112 <!-- =========== START OF FUNCTION DETAILS =========== -->
113 <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
114 <tr bgcolor="#70b0f0" class="details">
115   <th colspan="2">Function Details</th></tr>
116 </table>
117
118 <a name="formatSize"></a>
119 <table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
120   <h3><span class="sig"><span class="sig-name">formatSize</span>(<span class=sig-arg>n</span>)</span>
121  <a href="source/cherrypy.lib.filter.cachefilter-module.html#181" class="source">[source]</a>  </h3>
122   formats a number as a memory size, in bytes, kbytes, MB, GB)
123   <dl><dt></dt><dd>
124   </dd></dl>
125 </td></tr></table>
126
127 <a name="percentual"></a>
128 <table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
129   <h3><span class="sig"><span class="sig-name">percentual</span>(<span class=sig-arg>n</span>,
130           <span class=sig-arg>d</span>)</span>
131  <a href="source/cherrypy.lib.filter.cachefilter-module.html#174" class="source">[source]</a>  </h3>
132   calculates the percentual, dealing with div by zeros
133   <dl><dt></dt><dd>
134   </dd></dl>
135 </td></tr></table>
136 <br />
137
138
139 <!-- =========== START OF NAVBAR =========== -->
140 <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
141   <tr valign="center">
142     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
143     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
144     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
145     <th class="navbar" align="right" width="100%">
146       <table border="0" cellpadding="0" cellspacing="0">
147       <tr><th class="navbar" align="center">
148         <p class="nomargin">
149           <a class="navbar" target="_top" href="http://www.turbogears.org">TurboGears</a>
150       </p></th></tr></table>
151     </th>
152   </tr>
153 </table>
154
155 <table border="0" cellpadding="0" cellspacing="0" width="100%">
156   <tr>
157     <td align="left"><font size="-2">Generated by Epydoc 2.1.99 on Wed Sep 14 13:09:34 2005</font></td>
158     <td align="right"><a href="http://epydoc.sourceforge.net"
159                       ><font size="-2">http://epydoc.sf.net</font></a></td>
160   </tr>
161 </table>
162 </body>
163 </html>
Note: See TracBrowser for help on using the browser.