Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-175

Make JacksonJsonRedisSerializer NOT depend on a specific domain object class

    Details

      Description

      I am trying to use Redis with Spring (and) looking at the configuration required to acheive this, I've noticed that "JacksonJsonRedisSerializer" requires a domain object class for instantiation.

      My application has multiple domain objects and i would like to enable redis caching on several rest API methods (say — getObject1, getObject2 etc.). Each of these methods return a different object.

      The default JDK serialization works fine (has to do with enough information stored for deserializing). However, JSON serialization using "Object" class doesn't work (i guess as expected).

      Tried using "CompositeCacheManager" (one cacheManager per domain object that needs to be cached.....not elegant but gave it a try due to limitation with spring config) but am stuck due to https://jira.springsource.org/browse/SPR-8696

      Please advise as to how to proceed. Appreciate all the help.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amarkanth1984 Amarkanth
              Last updater:
              Alex Paransky
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: