1 Reply Latest reply on Sep 4, 2014 1:58 PM by Randall Hauch

    Modeshape 'self' federation...

    Lewis Henderson Novice



      Is there a way to configure Modeshape to have one subtree in a different infinispan cache? (Federation?)


      I am looking to have a persisted tree with one or more subtrees of a more 'temporary' nature. For example, nodes could be evicted after a timeout.


      If this is not possible or recommended, I could always use an Infinispan cache directly.






        • 1. Re: Modeshape 'self' federation...
          Randall Hauch Master

          It is not possible at this time. All node content (except for federated content) for a repository is stored within a single Infinispan cache.


          Have you thought about using the "mix:lastModified" mixin, which makes ModeShape automatically set the "jcr:lastModified" and "jcr:lastModifiedBy" properties whenever the node is changed? The "mix:created" mixin does the same thing for the "jcr:createdAt", "jcr:createdBy" properties. Can you use this to asynchronously remove nodes in certain areas of the repository that are older than your TTL value?


          Another option is to implement a connector that stores the documents inside a separate Infinispan cache. A connector can control the TTL value of the external nodes in the 2nd level cache, while the Infinispan's expiration settings could purge the entries from that cache.