Open Closed

Redis Configurations #3712


User avatar
0
viswajwalith created
  • 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)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello,

    For this, I think it would be sufficient to set the SlidingExpiration of a GlobalCacheEntryOptios(DistributedCacheEntryOptions) in AbpDistributedCacheOptions.

    Related document: https://docs.abp.io/en/abp/5.3/Caching#available-options

    Example code from BasketService on eShopOnAbp: https://github.com/abpframework/eShopOnAbp/blob/3d9dd741c9b9884e97b7038d731242d5fe4908d4/services/basket/src/EShopOnAbp.BasketService/BasketServiceModule.cs#L179-L196

    I 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.

  • User Avatar
    0
    viswajwalith created

    Hello,

    For this, I think it would be sufficient to set the SlidingExpiration of a GlobalCacheEntryOptios(DistributedCacheEntryOptions) in AbpDistributedCacheOptions.

    Related document: https://docs.abp.io/en/abp/5.3/Caching#available-options

    Example code from BasketService on eShopOnAbp: https://github.com/abpframework/eShopOnAbp/blob/3d9dd741c9b9884e97b7038d731242d5fe4908d4/services/basket/src/EShopOnAbp.BasketService/BasketServiceModule.cs#L179-L196

    I 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

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11