Is memcached a good way to store session share ammong web servers?

Bash Coder bashcoder+memcached at gmail.com
Mon Nov 13 15:21:26 UTC 2006


On 11/13/06, Vincent van Leeuwen < memcached at vinz.nl> wrote:

> No you don't. We keep 2 timestamps in memcached: last time the session was
> active, which is updated at each pageload, and last time the data in
> memcached
> was synced to the database. If the difference between the two timestamps
> is >
> 5 minutes, we sync the data in memcached to the database and update the
> timestamps appropriately.


I like this approach a lot.  Cuts down database writes by a huge factor, and
still assumes memcached is not reliable storage.

- Bash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20061113/858fbd63/attachment.html


More information about the memcached mailing list