Is memcached a good way to store session share ammong web
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
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the memcached