简体   繁体   中英

Caching content read from a large set of files in a ASP.NET core web api

I'm developing an asp.net core web api that will need to return data read from a large set of files and I'm worried about anything that may cause the app domain to shutdown meaning that this large set of file would have to be read once more on the first subsequent request.

I was evaluating thus writing a windows service that would do the files reading and act as a "cache service".

I would appreciate comments on this approach.

您可以将文件内容存储到Redis缓存中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM