Interface CacheHint

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.Long ZERO_STATE_ID  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Long getCacheStateId​(java.lang.String name)
      Returns a value for the current state of the cache hint This value is used in maintaining cache consistency across different caches using the same hint object (for instance, session based cache across a web cluster where each machine in the cluster holds a copy of the cache) Whenever a change is made to the cached value in one cache, the stateId is incremented
      void setCacheStateId​(java.lang.String name, java.lang.Long stateId)
      Sets the stateId - see getCacheStateId(String).
    • Field Detail

      • ZERO_STATE_ID

        static final java.lang.Long ZERO_STATE_ID
        Since:
        MicroStrategy Web 8.0.0
    • Method Detail

      • getCacheStateId

        java.lang.Long getCacheStateId​(java.lang.String name)
        Returns a value for the current state of the cache hint This value is used in maintaining cache consistency across different caches using the same hint object (for instance, session based cache across a web cluster where each machine in the cluster holds a copy of the cache) Whenever a change is made to the cached value in one cache, the stateId is incremented
        Parameters:
        name - cache name
        Returns:
        current state of the cache hint
      • setCacheStateId

        void setCacheStateId​(java.lang.String name,
                             java.lang.Long stateId)
        Sets the stateId - see getCacheStateId(String).
        Parameters:
        name - cache name
        stateId - new cache state id