-
1. Re: How to implement a cache "loader"?
galder.zamarreno May 11, 2012 11:57 AM (in response to jmfaerman)Just look at the implementations of any of the cache loaders in https://docs.jboss.org/author/x/DwY5
Codebase: https://github.com/infinispan/infinispan
Examples: jdbc, file, bdbje...etc.
-
2. Re: How to implement a cache "loader"?
jmfaerman May 14, 2012 6:21 PM (in response to galder.zamarreno)Will try that, thanks!
-
3. Re: How to implement a cache "loader"?
jmfaerman May 29, 2012 11:46 AM (in response to jmfaerman)I have found the implementation of Cache Loaders to be very dependant on Infinispan APIs (InternalCacheEntry, CacheLoaderConfig, etc).
One should be able to code just the "loading" (retrieving keys and values) without messing with ISPN internals.
Is there any JIRA suggesting something similar so i can vote?
-
4. Re: How to implement a cache "loader"?
jmfaerman May 29, 2012 5:02 PM (in response to jmfaerman)Just to make the point clear, i was looking how other grids do this. Hazelcasts MapLoader looks nice:
http://www.hazelcast.com/docs/2.1/javadoc/com/hazelcast/core/MapLoader.html
Hope our proposal for the new SPI moves this way
-
5. Re: How to implement a cache "loader"?
galder.zamarreno May 31, 2012 5:18 AM (in response to jmfaerman)I see that you've commented on https://community.jboss.org/docs/DOC-17867 - that's the place to suggest changes
-
6. Re: How to implement a cache "loader"?
jmfaerman May 31, 2012 6:36 AM (in response to galder.zamarreno)I am trying to implement a CacheLoader Adapter do bridge a simple interface, like MapLoader, to our current CacheStore or CacheLoader.
As current implementations are very concerned with cache internals (bucket management, transactions, etc), this is quite a challenging task.
If this would be helpful, i would be glad to contribute, but i would need some assinstance and wouldn't like to polute the forum.
Should i try IRC ?
-
7. Re: How to implement a cache "loader"?
galder.zamarreno Jun 4, 2012 7:12 AM (in response to jmfaerman)Julio, IRC would be good. You could ask us questions there and get soonish replies.