> Its more about logical ownership, the logic/method of how to retrieve the > size in bytes is dependant on the underlying cache in our case DirectMemory, > the store should not need to have to have any logic or understanding on how > to calculate the size or capacity, it should just be given it. If we can push > these two methods to the core cache, then as with below this could be removed > until another need arises.
so why not just extending the CacheServiceImpl? in that way we avoid unneeded boilerplate code. or, alternatively, if that methods could be useful also in other scenarios, move them directly in the CacheServiceImpl (and signature in the interface) best, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/
