- ABP Framework version: v5.1.3
- UI type: MVC
- DB provider: EF Core / MongoDB
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
In the Micro Service Template we would like to having the Sliding Expiration with "x" minutes for Reids, can you please let me know what is the process to configure the same for entire Hosts and UI?
2 Answer(s)
-
0
Hello,
For this, I think it would be sufficient to set the
SlidingExpiration
of aGlobalCacheEntryOptios(DistributedCacheEntryOptions)
inAbpDistributedCacheOptions
.Related document: https://docs.abp.io/en/abp/5.3/Caching#available-options
Example code from
BasketService
oneShopOnAbp
: https://github.com/abpframework/eShopOnAbp/blob/3d9dd741c9b9884e97b7038d731242d5fe4908d4/services/basket/src/EShopOnAbp.BasketService/BasketServiceModule.cs#L179-L196I don't quite understand why you need the same configuration on the UI side? If you think I have misunderstood your question, please feel free to give me more information. Have a nice day.
-
0
Hello,
For this, I think it would be sufficient to set the
SlidingExpiration
of aGlobalCacheEntryOptios(DistributedCacheEntryOptions)
inAbpDistributedCacheOptions
.Related document: https://docs.abp.io/en/abp/5.3/Caching#available-options
Example code from
BasketService
oneShopOnAbp
: https://github.com/abpframework/eShopOnAbp/blob/3d9dd741c9b9884e97b7038d731242d5fe4908d4/services/basket/src/EShopOnAbp.BasketService/BasketServiceModule.cs#L179-L196I don't quite understand why you need the same configuration on the UI side? If you think I have misunderstood your question, please feel free to give me more information. Have a nice day.
Thanks for the response, UI side means Web Layer in the micro service solution. Anyway I found the way to do the so
Which worked perfectly, Thanks for the support