Base solution for your next web application
Open Closed

Use Redis for "recently viewed items" functionality #9681


User avatar
0
lweng567 created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? Zero V9.1.0 the latest
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .Net Core

If issue related with ABP Framework

  • What is ABP Framework version? Zero

Hi there,

I am trying to use Redis to implement "recently viewed items" functionality. By reading the zero documentatoin, the cache is expired in 60 minutes by default although i can change the the expiry span to more hours. If the whole cache is expired then all the items within the cache will be expired, but for the "recently viewed items" functionality, i just need to expire the item with least score not the entire cache, please advise if my understanding is correct on the cache implemtation provided by Zero, if i am correct, then would you be able to provide some advise on how i should impliment the " recently viewed items" by leveraging Redis within Zero? Many thanks Laurie


1 Answer(s)