-
1. Re: Lazy / dynamic POJO properties supported in cache?
ben.wang Jul 17, 2006 11:59 PM (in response to rdewell)Guss you will need to provide more details for people to offer comments.
But I have two initial ones here:
1. Check into passivation feature in JBC. The cache get will only retrieve the data from the file store if it is not in-memory.
2. Check into PojoCache. Maybe thefine-grained replication and distributed object graph can help out.
-Ben -
2. Re: Lazy / dynamic POJO properties supported in cache?
rdewell Jul 18, 2006 10:10 AM (in response to rdewell)Thanks.
Can the result of method calls be cached in a fine grained way in POJOCache? The docs all seems to make reference to caching fields instead of methods. -
3. Re: Lazy / dynamic POJO properties supported in cache?
brian.stansberry Jul 18, 2006 10:36 AM (in response to rdewell)No, PojoCache only transparently stores fields; it has no way of knowing that you want the result of a method call to be stored.
-
4. Re: Lazy / dynamic POJO properties supported in cache?
rdewell Jul 18, 2006 11:04 AM (in response to rdewell)Ok, I've been reading the docs on CacheLoaders. They seem like a promising solution.
It looks to me like if I create my own CacheLoader implementation that sits on top of this virtual, infinite tree I'm describing, then that might do the trick. As my objects are requested out of this custom CacheLoader, I could instantiate them on demand. This custom CacheLoader could wrap around a FileCacheLoader instance for simple passivation capability.
Sound reasonable?