Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-54361

As a plugin developer I'd like to leverage Liferay's caching infrastructure with Spring's @Cachable annotation

    Details

      Description

      It would be very cool if plugin developers could use Spring's cache abstraction layer in a way that it utilizes Liferay's caching infrastructure under the covers.

      For example in situations like this ...

      public interface WeatherDao {
          
          public Weather getWeather(String zipCode);
          
          public List<Location> findLocations(String locationSearch);
      }
      
      public class DefaultWeatherDao implements WeatherDao {
          
          @Cacheable(cacheName="weatherCache")
          public Weather getWeather(String zipCode) {
              //Some Code
          }
          
          @Cacheable(cacheName="locationSearchCache")
          public List<Location> findLocations(String locationSearch) {
              //Some Code
          }
      }
      

      ... there'd be no need to use MultiVMPoolUtil/SingleVMPoolUtil manually.

        Attachments

          Activity

            People

            • Assignee:
              laszlo.csontos Laszlo Csontos (Inactive)
              Reporter:
              laszlo.csontos Laszlo Csontos (Inactive)
              Recent user:
              Shalaka Tendulkar
              Participants of an Issue:
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.0.0 M5