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

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

On 11/13/06, Vincent van Leeuwen < memcached at> 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...

More information about the memcached mailing list