<span class="gmail_quote"></span><span><span class="gmail_quote">On 11/13/06, <b class="gmail_sendername">Vincent van Leeuwen</b> &lt;<a href="mailto:memcached@vinz.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

memcached@vinz.nl</a>&gt; wrote:</span><br></span><div><span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
No you don't. We keep 2 timestamps in memcached: last time the session was<br>active, which is updated at each pageload, and last time the data in memcached<br>was synced to the database. If the difference between the two timestamps is &gt;
<br>5 minutes, we sync the data in memcached to the database and update the<br>timestamps appropriately. </blockquote></span><div><br>I like this approach a lot.&nbsp; Cuts down database writes by a huge factor, and still assumes memcached is not reliable storage.
<br></div><br></div>- Bash<br>

<br>