Class VolatileCacheServiceProvider


  • public class VolatileCacheServiceProvider
    extends Object
    Author:
    Yohann Chastagnier
    • Method Detail

      • getSessionVolatileResourceCacheService

        public static VolatileResourceCacheService getSessionVolatileResourceCacheService()
        Gets the volatile resource cache linked to the current user session.
        For example (and for now), this cache permits to handle attachments linked to a contribution not yet persisted. In case of the user does not persist its contribution, all resources linked to a "volatile" contribution (attachments for the example) are automatically deleted on the user session closing.
        Returns:
        the volatile resource cache linked to the current user session.