Cache Only And Store Only Mode
When you choose the cache only mode for selected entities, the entity objects are serialized and are always available in cache. Similarly, when you select the store only mode for selected entities, the entity objects are always available in store.
For only and store only modes, at the end of the RTC, the objects and their references are removed from the Rete network, thus freeing memory.
The cache only and store only mode is stateless between RTCs. You must explicitly load the objects needed by rules in an RTC, and you must ensure proper locking is used.
Various functions are available for loading the entities into the Rete network. They are generally used in an event preprocessor.