ResponseCache duration in minutes instead seconds
Can I set or convert values from seconds to minutes for the [ResponseCache (Duration = 3600)] attribute?
I would like to eventually save something like [ResponseCache (Duration = 60)] where 60 is minutes.
3 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
It's a fact, thanks. Another solution that can be used in such a situation is to create a CacheProfile in Program.cs:
Use:
This solution is useful when we want to use the settings in minutes from appsettings
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View