> On Jul 7, 2016, at 5:14 AM, Carl Waldbieser <[email protected]> wrote:
> 
> As for persisting session data-- I guess the idea is that storing or 
> retrieving the session object doesn't need to be async because it is just an 
> object in memory corresponding to a cookie in the request.  However, writing 
> to or reading from the session could definitely require async methods that 
> talk to a back end store.  This could potentially be one area where 
> implementing a component with an interface like `IRedisSessionStorage` might 
> be useful (get session synchonously from request passing in IRedisStorage,  
> then call `storeThingInSession()` which returns a deferred).

This is an extremely subtle point so I am very happy that it seems to have 
somehow gotten across :).  Thanks for writing up this answer; it's close to 
exactly what I would have written.
_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Reply via email to