Skip Headers

# Cache Architecture

Previous

Next

TopLink uses two types of cache: the session cache maintains objects retrieved from and written to the data source; and the unit of work cache holds objects while they participate in transactions. When a unit of work successfully commits to the data source, TopLink updates the session cache accordingly.

Note: You can also configure a query to cache its results (see "Caching Results in a ReadQuery")

As Figure: Object Life Cycle and the TopLink Caches shows, the session cache and the unit of work cache work together with the data source connection to manage objects in a TopLink application. The object life cycle relies on these three mechanisms.

Object Life Cycle and the TopLink Caches

Description of "Object Life Cycle and the TopLink Caches"