Rev 36080 |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 36081 2026-03-26 20:12:38
- Author: amit
- Log message:
- Use JDK serialization for Redis caches with Map<Integer,...> keys
GenericJackson2JsonRedisSerializer converts Map Integer keys to String
during JSON serialization. On deserialization, map.get(Integer) returns
null since keys are now Strings. This broke allOffers, offer.slabpayout,
catalog.published_yearmonth, and offer.achievement caches.
Fix: Use JdkSerializationRedisSerializer for these specific caches to
preserve exact Java types. Added Serializable to 9 model classes in the
offer object graph: CreateOfferRequest, TargetSlab, ItemCriteriaPayout,
ItemCriteria, PartnerCriteria, PayoutSlab, AmountModel, QtyAmountModel,
DateRangeModel.