librelist archives

« back to archive

Session and garbage collector

Session and garbage collector

From:
William Martin
Date:
2012-06-21 @ 12:00
Hi everyone,

For people using MongoDB to store user sessions,
The new version of MongoDB (i.e. 2.2) allow to create a
special index named TTL (Time to Live), document with a
TTL of 0 will be remove by a internal cron job of Mongo.

So, I think it's a good way to go to wipe old sessions.

William

Re: [photon.users] Session and garbage collector

From:
Nicolas
Date:
2012-06-21 @ 12:45
This is simply awesome :) No more need to have a custom job to collect the
garbage data !

Nicolas



On Thu, Jun 21, 2012 at 2:00 PM, William MARTIN <wysman@gmail.com> wrote:

> Hi everyone,
>
> For people using MongoDB to store user sessions,
> The new version of MongoDB (i.e. 2.2) allow to create a
> special index named TTL (Time to Live), document with a
> TTL of 0 will be remove by a internal cron job of Mongo.
>
> So, I think it's a good way to go to wipe old sessions.
>
> William
>