How to cache to file? #2001
Replies: 4 comments 2 replies
-
At first, you should ensure that CacheManager can write cache data to file, if not, you should do this by yourself. What's more, overwrite Ocelot/src/Ocelot.Cache.CacheManager/OcelotCacheManagerCache.cs Lines 15 to 18 in 41519b1 |
Beta Was this translation helpful? Give feedback.
-
@catcherwong : thank you for answering me. Seems that CacheManager don't have feature which writes cache data to file, I will try to write a new CacheManager service for Ocelot. |
Beta Was this translation helpful? Give feedback.
-
You can take a look on the following repository, it may help you how to do. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @catcherwong , brilliant code. |
Beta Was this translation helpful? Give feedback.
-
Hello,
If I want to use CacheManager to cache to file, with no expiration, instead of memory, do anyone know where to start to code this?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions