0 Replies Latest reply on Nov 1, 2012 4:46 PM by Amit Gupta

    FileStoreCache Configuration not working.

    Amit Gupta Newbie

      I am trying to try simple file based cache loader. However with the below configuration - I was expecting a serialized object at c:\\FILESTORE on every cache.put call. However this is not happening. Any pointers would be greatly appreciated. Thanks in advance.

       

      defineConfiguration(

      cacheConfig.getCacheName(),

      new ConfigurationBuilder()

      .loaders()

      .addFileCacheStore()

      .location("C:\\FILESTORE")

      .eviction()

      .maxEntries(cacheConfig.getMaxEntries())

      .strategy(

      EvictionStrategy.valueOf(cacheConfig

      .getEvictionStrategy())).expiration()

      .lifespan(cacheConfig.getMaxLifespan()).build());