# How does Netdrive handles cache?

**URL:** <https://support.bdrive.com/t/how-does-netdrive-handles-cache/134839>\
**Category:** NetDrive3\
**Tags:** cache\
**Created:** [February 19, 2020, 4:57am UTC](https://support.bdrive.com/t/how-does-netdrive-handles-cache/134839 "2020-02-19T04:57:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![garyli](https://support.bdrive.com/letter_avatar_proxy/v4/letter/g/ed655f/32.png) [@garyli](https://support.bdrive.com/u/garyli)\
**Post date:** [February 19, 2020, 4:57am UTC](https://support.bdrive.com/t/how-does-netdrive-handles-cache/134839/1 "2020-02-19T04:57:39Z")

</div>

I notice there is an option to set the cache size for the NetDrive, but no other information how it works.

so is it possible to do this, I’ll set a specific cache size (say 100G), and NetDrive will keep the last used 100G of files on my hard drive. like if I move a video (say 50G) to the Netdrive folder, Netdrive will upload it to google drive in background as it does now, but after upload is completed, Netdrive will NOT delete it from my local hard drive so that I still have fast access to my most recent files. it only gets deleted when there is too much stuff in the cache (i.e., approaching the pre-set 100G limit).

this helps to save bandwidth and provide faster access.

I’m not sure if this is how NetDrive works already because I can’t find much information online, if so, great. if not, please consider this for future updates.  
thanks.

---

<div class="post-metadata">

**Author:** ![support1](https://support.bdrive.com/user_avatar/support.bdrive.com/support1/32/17105_2.png) [@support1](https://support.bdrive.com/u/support1)\
**Post date:** [February 19, 2020, 5:00am UTC](https://support.bdrive.com/t/how-does-netdrive-handles-cache/134839/2 "2020-02-19T05:00:48Z")

</div>

NetDrive removes caches after some time when the file is not used by any process.

Please refer to the following topic.

> [@How NetDrive3 cache works](https://support.bdrive.com/t/how-netdrive3-cache-works/14364):
>
> NetDrive uses cache for handling files. You can specify cache size in Settings screen. [image] Cache block size is 64KB. For read operations, NetDrive performs prefetching expected file blocks. NetDrive expects and caches next file block when the application requests file blocks sequentially for predefined time. For write operations, NetDrive uses almost same cache size as target file to perform uploading to remote storage. We need whole file to start uploading because remote file storages …

---

<div class="post-metadata">

**Author:** ![garyli](https://support.bdrive.com/letter_avatar_proxy/v4/letter/g/ed655f/32.png) [@garyli](https://support.bdrive.com/u/garyli)\
**Post date:** [February 19, 2020, 5:27am UTC](https://support.bdrive.com/t/how-does-netdrive-handles-cache/134839/3 "2020-02-19T05:27:26Z")

</div>

I just did some test for read operation, I copied 1 video to my desktop, immediately repeated the paste and there is no network operation.  
However if I wait for like 1 minute and then redo the paste, it needs to be downloaded from internet again.  
I feel like this time is way toooooo short, I have 50gb of cache selected so i don’t think it needs to be cleared that aggressively. Maybe give us an option for how long we would like the files to be retained in cache? I would like to at least have an option of a matter of hours, not just 1 minute. Also it would be great to allow larger cache size, or just user defined value.

QNAP has a feature called hybridmount which pretty much does the same thing. Maybe you can take a look at that?

---

<div class="post-metadata">

**Author:** ![support1](https://support.bdrive.com/user_avatar/support.bdrive.com/support1/32/17105_2.png) [@support1](https://support.bdrive.com/u/support1)\
**Post date:** [February 20, 2020, 12:56am UTC](https://support.bdrive.com/t/how-does-netdrive-handles-cache/134839/5 "2020-02-20T00:56:32Z")

</div>

I sent you a private message about the cache control.

---

<div class="post-metadata">

**Author:** ![system](https://support.bdrive.com/user_avatar/support.bdrive.com/system/32/17101_2.png) [@system](https://support.bdrive.com/u/system)\
**Post date:** [February 27, 2020, 12:56am UTC](https://support.bdrive.com/t/how-does-netdrive-handles-cache/134839/6 "2020-02-27T00:56:34Z")

</div>

Closed on February 27, 2020, 12:56am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
