Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1526

API used to access the cache is inconsistent

Details

    Description

      The API used to access the cache is inconsistent. This bug fix makes cache accessing consistent and deprecates redundant methods.

      API CHANGES:

      Class: com.liferay.portal.kernel.cache.MultiVMPoolUtil

      Method: get(PortalCache portalCache, String key)
      Status: Deprecated
      New call: portalCache.get(key)

      Method: put(PortalCache portalCache, String key, Object obj)
      Status: Deprecated
      New call: portalCache.put(key, obj)

      Method: put(PortalCache portalCache, String key, Serializable obj)
      Status: Deprecated
      New call: portalCache.(key, obj)

      Method: remove(PortalCache portalCache, String key)
      Status: Deprecated
      New call: portalCache.remove(key)

      Class: com.liferay.portal.kernel.cache.SingleVMPoolUtil

      Method: get(PortalCache portalCache, String key)
      Status: Deprecated
      New call: portalCache.get(key)

      Method: put(PortalCache portalCache, String key, Object obj)
      Status: Deprecated
      New call: portalCache.put(key, obj)

      Method: put(PortalCache portalCache, String key, Object obj, int timeToLive)
      Status: Deprecated
      New call: portalCache.put(key, obj, timeToLive)

      Method: put(PortalCache portalCache, String key, Serializable obj)
      Status: Deprecated
      New call: portalCache.put(key, obj)

      Method: put(PortalCache portalCache, String key, Serializable obj, int timeToLive)
      Status: Deprecated
      New call: portalCache.put(key, obj, timeToLive)

      Method: remove(PortalCache portalCache, String key)
      Status: Deprecated
      New call: portalCache.remove(key)

      Attachments

        Issue Links

          Activity

            People

              michael.saechang Michael Saechang
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP5 (5.1.8)
                  5.2 EE SP3 (5.2.7)