简体   繁体   English

服务器端缓存 Azure Blob 存储文件内容

[英]Server-side caching Azure Blob storage file content

I have a Spring Boot web application integrated with an Azure Blob Storage container in which I save image identifiers for entity categories.我有一个 Spring 启动 web 应用程序与 Azure Blob 存储容器集成,我在其中保存实体类别的图像标识符。 Example: Users can be Teachers, Doctors, Engineers, and so on.示例:用户可以是教师、医生、工程师等。 In my user list dropdown for each of this category I have an image identifier saved in Azure Blob Storage.在每个此类别的用户列表下拉列表中,我有一个图像标识符保存在 Azure Blob 存储中。

Given that this image identifier does not get changed very often I would like to implement a caching mechanism so that I don't download the same image everytime the user uses the dropdown.鉴于此图像标识符不会经常更改,我想实现一种缓存机制,这样我就不会在每次用户使用下拉菜单时下载相同的图像。 Is this possible in the Spring Boot application or I must investigate caching on the UI side?这在 Spring 引导应用程序中是否可行,或者我必须调查 UI 端的缓存?

I don't think it would be wise to cache all this in your Spring Boot application, if you're creating the front-end in for example React as you can use the browser/web-app caching to keep the files cached.我认为将所有这些缓存在 Spring 启动应用程序中是不明智的,如果您在例如 React 中创建前端,因为您可以使用浏览器/网络应用程序缓存来保持文件缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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