6 Replies Latest reply on Jul 7, 2015 7:34 AM by apabst

    How to get notified when entry is evicted from backing singleFileStore

    apabst

      The standard eviction event fires when a cache entry is evicted from the in-memory cache. In our case we need a notification only when it is evicted from the restart-persistent disk cache which is configured to be a SingleFileStore. Is that even possible?

      We're using Infinispan as a local cache, so any clustering considerations are moot for us.

      Our cache configuration is as follows:

       

        manager.defineConfiguration("eviction-test-cache", new ConfigurationBuilder()
        .persistence().addSingleFileStore().location("eviction-test")
        .maxEntries(500).preload(true).purgeOnStartup(false)
        .eviction().strategy(LRU).maxEntries(100L)
        .build());