Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
36081 48 d 5 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ 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.
 
35631 102 d 12 h ranu /trunk/ code commit for calling target  
35600 105 d 13 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fix Redis serialization bug and add 15-min cache manager

- Fix SerializationException for publishedOffersWithAchievement cache
- Add @JsonIgnore to computed getters getBillingStartDate/getBillingEndDate
- Add @JsonIgnoreProperties(ignoreUnknown=true) to CreateOfferRequest,
ItemCriteriaPayout, TargetSlab for backward compatibility with cached data

- Add redisVeryShortCacheManager (15 min TTL) for frequently changing data
- brandStockPrices, partnerInvestments, partnerSales, partnerDailyInvestment
now use 15-min cache instead of 60-min
 
33745 613 d 7 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/model/ Added Transporter details  
33736 614 d 9 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ Fixed Date wise processing  
33441 703 d 13 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Offer Processing fixed  
32979 811 d 9 h amit.gupta /trunk/ Fixed changes related to offer.  
30670 1416 d 9 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/model/ Fixed leads logic  
30651 1419 d 8 h amit.gupta /trunk/ Added processing of sellin  
29785 1587 d 6 h amit.gupta /trunk/ Fixed price circular  
27878 1898 d 9 h amit.gupta /trunk/