Class CmsMemoryObjectCache

    • Method Detail

      • getInstance

        public static CmsMemoryObjectCache getInstance()
        Returns the singleton memory Object cache instance.

        Returns:
        the singleton memory Object cache instance
      • getCachedObject

        public java.lang.Object getCachedObject​(java.lang.Class<?> owner,
                                                java.lang.String key)
        Returns an object from the cache.

        Parameters:
        owner - the owner class of the cached object (used to ensure keys don't overlap)
        key - the key to lookup the object for
        Returns:
        an object from the cache, or null if no object matches the given key
      • putCachedObject

        public void putCachedObject​(java.lang.Class<?> owner,
                                    java.lang.String key,
                                    java.lang.Object value)
        Puts an object into the cache.

        Parameters:
        owner - the owner class of the cached object (used to ensure keys don't overlap)
        key - the key to store the object at
        value - the object to store