简体   繁体   English

挂载新的Azure CloudDrive快照时保留缓存

[英]Keep the Cache while Mount a new Snapshot of Azure CloudDrive

The local cache for Azure CloudDrive is great for performance. Azure CloudDrive的本地缓存非常适合提高性能。

I recreate a new snapshot every 20 minutes, with little change or maybe no change at all in each snapshot. 我每20分钟重新创建一个新快照,每个快照几乎没有变化,甚至根本没有变化。

To use the new snapshot, what I done is: 要使用新快照,我要做的是:

cloudDrive.Unmount();
cloudDrive = storageAccount.CreateCloudDrive(newSnapshotUri);
cloudDrive.Mount(size, option);

I like to know, will the old cache still be use for the new mount snapshot? 我想知道,旧的缓存仍将用于新的安装快照吗? Or the whole cache has to be rebuild again? 还是必须重新重建整个缓存?

This is purely an educated guess, but I assume the cache is rebuilt. 这纯粹是一种有根据的猜测,但是我假设缓存已重建。 My reasoning is that you can't know when you mount the new snapshot what data is the same and what's different, so it would be impossible to figure out what to invalidate in the cache. 我的理由是,当您装入新快照时,您不知道什么数据是相同的,什么是不同的,因此不可能找出在缓存中无效的数据。

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

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