Twisted doesn&#39;t enforce any, that&#39;s part of the effect of you actually writing the server, defining, enforcing, and adhering to those limits is left to the developer.  Of course you have a limited amount of space in your machine, and you probably don&#39;t want to use swap, but nothing twisted is going to limit you on, it doesn&#39;t really do anything on that level of abstraction.<br>
<br>Andy Fundinger<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 6:24 PM,  <span dir="ltr">&lt;<a href="mailto:vitaly@synapticvision.com" target="_blank">vitaly@synapticvision.com</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>
Such global variable(lets say dictionary) will have any size limit?<br>
<div><div></div><div><br>
Quoting &quot;Andy Fundinger&quot; &lt;Andy@NewWorldElectric.com&gt;:<br>
<br>
&gt; Part of the beauty of twisted is that you don&#39;t actually need to do anything<br>
&gt; special to achieve that, just create a global dict or other object of your<br>
&gt; choice and access it as needed.  More likely what you need to look 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 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 server<br>
&gt; rather than just some methods for servicing requests.  The server will run<br>
&gt; until stopped and all global or even local variables will remain in memory<br>
&gt; unless deleted or dereferenced and garbage collected.  Rather than doing<br>
&gt; something special to get a persistent variable you need to do 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" target="_blank">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" target="_blank">exarkun@twistedmatrix.com</a>:<br>
&gt;&gt;<br>
&gt;&gt; &gt; On 05:41 pm, <a href="mailto:vitaly@synapticvision.com" target="_blank">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 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?  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" target="_blank">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" target="_blank">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 you<br>
&gt; awake.<br>
&gt;<br>
<br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">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" target="_blank">http://channel3b.wordpress.com</a><br><br>Drinking good coffee makes you wise, drinking bad coffee only makes you awake.<br>