(PERL) set_cb_connect_success

Marcus Hunger hunger at sipgate.de
Tue Oct 10 10:11:16 UTC 2006

Hi list,
I am just about to start using memcached (with the perl client), but I figured 
out, there could be conditions creating stale data when cache-daemons get 
killed and resurrected. I guess, these conditions could be prevented when the 
client flushes the whole cache when daemons appear. This might sound a bit 
radically, but it should be secure. 
Therefor I suggest a set_cb_connect_success callback, which gets triggered 
everytime a host is connected. This shouldn't be too hard to implement and 
wouldn't create any design problems, would it?

Best regards,

Marcus Hunger

More information about the memcached mailing list