Sterling Object Cache

Oct 11, 2011 at 2:21 PM

As I understand it, Sterling caches objects as you save load them for performance reasons - so if you load it again, it just loads from cache.

Is there a way to tell Sterling not to hold objects in memory - as a whole or per object.

Reason: Some of our objects are rather large, and would be quite resource intensive if they were kept in memory for the whole session.

Oct 11, 2011 at 2:49 PM

Sterling only caches from indexes and keys using the "Lazy<T>" pattern. Explicit loads are not cached, and you can flush any cache by calling Refresh on the database.