Class MockCacheAccess

    • Constructor Detail

      • MockCacheAccess

        public MockCacheAccess()
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.Object key)
        Description copied from interface: CacheAccess
        Gets an object from the cache for the given key.
        Specified by:
        get in interface CacheAccess
        Overrides:
        get in class CacheAccessImpl
        Parameters:
        key - name of object which should be retrieved from the cache
        Returns:
        the object or null if the object could not be found in the cache
      • put

        public void put​(java.lang.Object key,
                        java.lang.Object object)
                 throws SAPHybrisCacheException
        Description copied from interface: CacheAccess
        Puts an object into the cache region.
        Specified by:
        put in interface CacheAccess
        Overrides:
        put in class CacheAccessImpl
        Parameters:
        key - key of object
        object - object which is put into the cache
        Throws:
        SAPHybrisCacheException - thrown if something goes wrong while adding an object to cache