As far as my understanding goes, write-through if configured and handled by Infinispan. The cache loader just needs to have the write, etc. methods implemented.
Vladimir, thanks for you reply.
My question is exactly about implementing those write, etc methods.
It's not obvious for me how to do this.
What exactly are you trying to do? Have you considered using the Infinispan Query module that uses Lucene underneath to index your data? You might not need the cache loader you're asking for...