2 Replies Latest reply on May 14, 2013 7:47 AM by rpelisse

    JSON based custom cache store

    rpelisse

      Hi all,

       

      I would to change the storage format of the FileCacheStore provided by InfiniSpan to be in JSON rather than serialized Java classes (I have few data, so I don't expect this to be any kind of performance drag). I looked around a bit and it seems to me that my best option is to extends the FileCacheStore class and override the methods doing the serialization...

       

      Is this the correct approach or am I missing something more obvious or easier to implement this ?

       

      Thanks !

        • 1. Re: JSON based custom cache store
          manik

          You could extend the FCS or write a whole new CacheStore from scratch if there is nothing in the FCS code that you'd want to re-use.

          1 of 1 people found this helpful
          • 2. Re: JSON based custom cache store
            rpelisse

            Hi Manik,

             

            Thanks for the hint ! I was afraid I was going in the wrong direction here or that I missed an available option to implement this, good to know that it is not the case. If in end up implementing something reusable, I'll push it to my github and let you know.