It would be nice if CacheLineTable had a constructor that accepts a Map
and if it implemented the Map interface - making it easier to integrate
OFBiz's cache with third party utilities. This is more of a wish list
kind of thing, but I thought it might help you plan the design.
-Adrian
Adam Heath wrote:
I want to remove CacheLineTable, by inlining it into UtilCache. This
needs to be done to make certain stats get updated correctly, and to
support placing things into memory when they get read from the backing
disk store.
Of course, removing this class could break external users who may be
accessing it. I consider CacheLineTable, and the CacheLine classes,
to be internal, and that all access should only be thru UtilCache. As
such, any method that currently accesses one of those classes will be
deprecated, and throw UnsupportedOperationException, going forward.
(I'm aware that webtools calls CacheLineTable.getKeyFromMemory(); that
method will still be available, but on UtilCache)