No, clue, but I've sent the code to you off list and if anyone else wants it I'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"><<a href="mailto:hubbard@sdsc.edu">hubbard@sdsc.edu</a>></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>
> Part of the beauty of twisted is that you don't actually need to do<br>
> anything<br>
> special to achieve that, just create a global dict or other object<br>
> of your<br>
> choice and access it as needed. More likely what you need to look<br>
> for is a<br>
> cache expiration mechanism, I've linked in lrucache (<br>
> <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>
> just<br>
> write my own constraints as appropriate.<br>
><br>
> It's often misunderstood, but in twisted you are writing an actual<br>
> server<br>
> rather than just some methods for servicing requests. The server<br>
> will run<br>
> until stopped and all global or even local variables will remain in<br>
> memory<br>
> unless deleted or dereferenced and garbage collected. Rather than<br>
> doing<br>
> something special to get a persistent variable you need to do<br>
> something<br>
> special when you want a non-persistent one.<br>
><br>
> -Andy<br>
><br>
> On Mon, Nov 9, 2009 at 2:28 PM, <<a href="mailto:vitaly@synapticvision.com">vitaly@synapticvision.com</a>> wrote:<br>
><br>
>><br>
>><br>
>> Caching the results of some particular method calls, so other server<br>
>> side methods can access those results (I'm thinking about example of<br>
>> global variable per entire server, so once imported, such variable<br>
>> content could be access).<br>
>><br>
>><br>
>><br>
>> Quoting <a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>:<br>
>><br>
>>> On 05:41 pm, <a href="mailto:vitaly@synapticvision.com">vitaly@synapticvision.com</a> wrote:<br>
>>>> hi,<br>
>>>> is there any cache mechanism for twisted? Could one point me<br>
>>>> please to<br>
>>>> that docs?<br>
>>><br>
>>> What sort of caching are you interested in? Caching the results of<br>
>>> method calls? A caching HTTP proxy? Caching in the DNS client?<br>
>>> The<br>
>>> total list of possibilities could run to many pages. :)<br>
>>><br>
>>> Jean-Paul<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>
>>><br>
>><br>
>><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>
>><br>
><br>
><br>
><br>
> --<br>
> Blog: <a href="http://channel3b.wordpress.com" target="_blank">http://channel3b.wordpress.com</a><br>
><br>
> Drinking good coffee makes you wise, drinking bad coffee only makes<br>
> you<br>
> awake.<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>
<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>