No, clue, but I&#39;ve sent the code to you off list and if anyone else wants it I&#39;d be glad to do the same.<br><br>Andy<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 5:47 PM, Paul Hubbard <span dir="ltr">&lt;<a href="mailto:hubbard@sdsc.edu">hubbard@sdsc.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Both of the links from pypi are dead, alas. Do you know if that<br>
project is alive somewhere else?<br>
<br>
Cheers,<br>
<font color="#888888">Paul<br>
</font><div><div></div><div class="h5"><br>
<br>
On Nov 9, 2009, at 2:42 PM, Andy Fundinger wrote:<br>
<br>
&gt; Part of the beauty of twisted is that you don&#39;t actually need to do<br>
&gt; anything<br>
&gt; special to achieve that, just create a global dict or other object<br>
&gt; of your<br>
&gt; choice and access it as needed.  More likely what you need to look<br>
&gt; for is a<br>
&gt; cache expiration mechanism, I&#39;ve linked in lrucache (<br>
&gt; <a href="http://pypi.python.org/pypi/lrucache/0.2" target="_blank">http://pypi.python.org/pypi/lrucache/0.2</a>) in one case, but usually I<br>
&gt; just<br>
&gt; write my own constraints as appropriate.<br>
&gt;<br>
&gt; It&#39;s often misunderstood, but in twisted you are writing an actual<br>
&gt; server<br>
&gt; rather than just some methods for servicing requests.  The server<br>
&gt; will run<br>
&gt; until stopped and all global or even local variables will remain in<br>
&gt; memory<br>
&gt; unless deleted or dereferenced and garbage collected.  Rather than<br>
&gt; doing<br>
&gt; something special to get a persistent variable you need to do<br>
&gt; something<br>
&gt; special when you want a non-persistent one.<br>
&gt;<br>
&gt; -Andy<br>
&gt;<br>
&gt; On Mon, Nov 9, 2009 at 2:28 PM, &lt;<a href="mailto:vitaly@synapticvision.com">vitaly@synapticvision.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Caching the results of some particular method calls, so other server<br>
&gt;&gt; side methods can access those results (I&#39;m thinking about example of<br>
&gt;&gt; global variable per entire server, so once imported, such variable<br>
&gt;&gt; content could be access).<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Quoting <a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>:<br>
&gt;&gt;<br>
&gt;&gt;&gt; On 05:41 pm, <a href="mailto:vitaly@synapticvision.com">vitaly@synapticvision.com</a> wrote:<br>
&gt;&gt;&gt;&gt; hi,<br>
&gt;&gt;&gt;&gt; is there any cache mechanism for twisted? Could one point me<br>
&gt;&gt;&gt;&gt; please to<br>
&gt;&gt;&gt;&gt; that docs?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What sort of caching are you interested in?  Caching the results of<br>
&gt;&gt;&gt; method calls?  A caching HTTP proxy?  Caching in the DNS client?<br>
&gt;&gt;&gt; The<br>
&gt;&gt;&gt; total list of possibilities could run to many pages. :)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Jean-Paul<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Twisted-Python mailing list<br>
&gt;&gt;&gt; <a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
&gt;&gt;&gt; <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Twisted-Python mailing list<br>
&gt;&gt; <a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
&gt;&gt; <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Blog:  <a href="http://channel3b.wordpress.com" target="_blank">http://channel3b.wordpress.com</a><br>
&gt;<br>
&gt; Drinking good coffee makes you wise, drinking bad coffee only makes<br>
&gt; you<br>
&gt; awake.<br>
&gt; _______________________________________________<br>
&gt; Twisted-Python mailing list<br>
&gt; <a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
&gt; <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Blog:  <a href="http://channel3b.wordpress.com">http://channel3b.wordpress.com</a><br><br>Drinking good coffee makes you wise, drinking bad coffee only makes you awake.<br>