Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
jvx:common:util:classes [2020/06/29 13:59] cduncan [XML Editing] |
jvx:common:util:classes [2020/07/28 09:48] cduncan [The Object Cache] |
||
---|---|---|---|
Line 34: | Line 34: | ||
From time to time objects have to be cached and exchanged between various instances. Parameters and public methods are very useful for this purpose, but we do not always want to pass an object on across countless instances to the target. Also, the required objects are not always located in the same scope. | From time to time objects have to be cached and exchanged between various instances. Parameters and public methods are very useful for this purpose, but we do not always want to pass an object on across countless instances to the target. Also, the required objects are not always located in the same scope. | ||
- | This is what the ObjectCache is for, which handles objects statically, for certain time periods or permanently, within a VM. | + | This is what the ObjectCache is for: to handle objects statically, for certain time periods or permanently, within a VM. |
This can be compared to a static hash table complemented by a timeout. | This can be compared to a static hash table complemented by a timeout. |