Creating objects is costly and time consuming, keeping a few on hand for when you next will need them helps a lot.
This is what this factory caching infrastructure provides. It will create the object from the class defined on it and
set the parent and the model as needed for all created items. The View has to release the Item using the
release function of the Factory interface for all of this to work properly.
The cache might decide to flush itself when the application event pause is triggered.
]]
methods {
@property memory_limit {
[[Define the maxium size in Bytes that all the object waiting on standby in the cache take. They must provide the @Efl.Cached.Item interface for an accurate accounting.]]
get {}
set {}
values {
limit: uint; [[When set to zero, there is no limit on the amount of memory the cache will use.]]
}
}
@property items_limit {
[[Define how many maximum number of items are waiting on standby in the cache.]]
get {}
set {}
values {
limit: uint; [[When set to zero, there is no limit to the amount of items stored in the cache.]]