Maybe I'm missing something, but couldn't you store the object in a
beaker cache that expires and just store the pkid of the object in the
session?

On 5/11/10, writes_on <[email protected]> wrote:
>
> Hi all,
>
> I've got a question about Pylons sessions. I'm saving the results of a
> rather long SA query in a session and I'd like that session object to
> "expire" after some time so the query will be re-run in case there are
> changes to the database. Is there a way to make a single object in a session
> expire after some time duration?
>
> Thanks in advance for your help!
> Doug
> --
> View this message in context:
> http://pylons-discuss.1595796.n2.nabble.com/session-individual-object-expiration-tp5037707p5037707.html
> Sent from the pylons-discuss mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>

-- 
Sent from my mobile device

Brian O'Connor

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to