[odb-users] how to implement application session?
Boris Kolpackov
boris at codesynthesis.com
Wed Nov 20 04:52:25 EST 2013
Hi Qiang,
qiang peng <pengqiang1979 at gmail.com> writes:
> In fact, need a seesion which life as long as application program's life,
> so can use cached object.
If your application is single-threaded, then you can use ODB's stock
session for that. For a multi-threaded application you will have to
implement your own thread-safe object cache as described in Section
11.2.
Boris
More information about the odb-users
mailing list