thanks and I will try it.<br><br><div class="gmail_quote">2009/6/1 Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br>
<div><div></div><div class="h5"><br>
On Mon, Jun 01, 2009 at 12:54:53PM +0800, Chieu wrote:<br>
<br>
&gt; I found that nginx can just work in multi-process. I just write a cache and<br>
&gt; found the cache can not be shared in multi-process model, each work process<br>
&gt; just copy the cache and manage the cache self. So I want a global cache<br>
&gt; .Does any way I can share a cache in global?<br>
<br>
</div></div>For inter-process data nginx typically uses shared memory zones<br>
(implemented via mmap() or shmget() depending on OS capabilites).<br>
Take a look at ngx_http_limit_zone_module for coding examples.<br>
<font color="#888888"><br>
Maxim Dounin<br>
<br>
</font></blockquote></div><br>