Re: Thread-safety with sessions

2018-01-19 Thread Mark Thomas
On 19/01/18 20:40, Christopher Schultz wrote: > Mark, > > On 1/19/18 3:04 AM, Mark Thomas wrote: >> On 18/01/18 20:11, Christopher Schultz wrote: >>> Speaking of "expensive" objects, we do have a "user" object in >>> the session. If the user isn't there, we throw all kinds of >>> exceptions and do

Re: Thread-safety with sessions

2018-01-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 1/19/18 3:04 AM, Mark Thomas wrote: > On 18/01/18 20:11, Christopher Schultz wrote: >> Speaking of "expensive" objects, we do have a "user" object in >> the session. If the user isn't there, we throw all kinds of >> exceptions and don't let

Re: Thread-safety with sessions

2018-01-19 Thread Mark Thomas
On 18/01/18 20:11, Christopher Schultz wrote: > Olaf, > > On 1/18/18 1:28 PM, Olaf Kock wrote: > >> On 18.01.2018 06:37, Christopher Schultz wrote: >>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >>> >>> Mark, >>> >>> On 1/17/18 4:31 PM, Mark Thomas wrote: On 17/01/18 17:05, Christopher

Re: Thread-safety with sessions

2018-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Olaf, On 1/18/18 1:28 PM, Olaf Kock wrote: > > On 18.01.2018 06:37, Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> Mark, >> >> On 1/17/18 4:31 PM, Mark Thomas wrote: >>> On 17/01/18 17:05, Christopher Schultz

Re: Thread-safety with sessions

2018-01-18 Thread Olaf Kock
On 18.01.2018 06:37, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 1/17/18 4:31 PM, Mark Thomas wrote: On 17/01/18 17:05, Christopher Schultz wrote: All, I have a use-case related to caching where I need to make sure that an operation only happens one t

Re: Thread-safety with sessions

2018-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 1/17/18 4:31 PM, Mark Thomas wrote: > On 17/01/18 17:05, Christopher Schultz wrote: >> All, >> >> I have a use-case related to caching where I need to make sure >> that an operation only happens one time with respect to an object >> in the

Re: Thread-safety with sessions

2018-01-17 Thread Mark Thomas
On 17/01/18 17:05, Christopher Schultz wrote: > All, > > I have a use-case related to caching where I need to make sure that an > operation only happens one time with respect to an object in the > session. Basically, I want to build a cache and put it into the > session, but it needs to be thread-

Re: Thread-safety with sessions

2018-01-17 Thread Konstantin Kolinko
2018-01-17 20:05 GMT+03:00 Christopher Schultz : > > All, > > I have a use-case related to caching where I need to make sure that an > operation only happens one time with respect to an object in the > session. Basically, I want to build a cache and put it into the > session, but it needs to be thr

Thread-safety with sessions

2018-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I have a use-case related to caching where I need to make sure that an operation only happens one time with respect to an object in the session. Basically, I want to build a cache and put it into the session, but it needs to be thread-safe enou