Loki
0.1.7
|
CachedFactory provides an extension of a Factory with caching support. More...
![]() |
Modules | |
Encapsulation policies | |
Defines how the object is returned to the client. | |
Creation policies | |
Defines a way to limit the creation operation. | |
Eviction policies | |
Gathers informations about the stored objects and choose a candidate for eviction. | |
Statistic policies | |
Gathers information about the cache. | |
CachedFactory provides an extension of a Factory with caching support.
Once used objects are returned to the CachedFactory that manages its destruction. If your code uses lots of "long to construct/destruct objects" using the CachedFactory will surely speedup the execution.