<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY><SPAN class=483281107-26072007><FONT face=Arial color=#0000ff size=2>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> memcached-bounces@lists.danga.com
[mailto:memcached-bounces@lists.danga.com] <B>De la part de</B> Chris
Hondl<BR></FONT></DIV>
<DIV><SPAN class=483281107-26072007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV>We handle this with a probabilistic timeout implemented in our
application. We store a timestamp and expiration time serialized as part
of the value set to memcache. The last minute or so before the key
expires we randomly run the query and set the value to memcache with a new
expiry. The probability ramps up from 0% to 100% over the last minute or
so. <BR></DIV></BLOCKQUOTE>
<DIV> </DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>I like this.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=483281107-26072007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=483281107-26072007><FONT face=Arial
color=#0000ff size=2>Why not include probalistic expirations in the
server ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=483281107-26072007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=483281107-26072007><FONT face=Arial
color=#0000ff size=2>Here is a proposal :</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=483281107-26072007><FONT face=Arial
color=#0000ff size=2>- add a startup flag (ie : -e 60), which activates
probalistic expirations (if the flag is not set, the determinnistic logic is
used)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=483281107-26072007><FONT face=Arial
color=#0000ff size=2>- gets may return a cache miss using the same logic as
described here</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=483281107-26072007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=483281107-26072007><FONT face=Arial
color=#0000ff size=2>Jean-François</FONT></SPAN></DIV></BODY></HTML>