aboutsummaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorHellyson Rodrigo Parteka <[email protected]>2021-12-03 01:01:35 -0300
committerHellyson Rodrigo Parteka <[email protected]>2021-12-03 01:01:35 -0300
commitaf82be13f9b9a27578c7506c98ef71ccbd84a65c (patch)
tree1f9cfc8879f0ffa39e84f0d65c3e490f1ac2fedd /src/scripts
parent3b2aa47e95e277e94a053636f693801c8dc96cf4 (diff)
downloadmuse-af82be13f9b9a27578c7506c98ef71ccbd84a65c.tar.xz
muse-af82be13f9b9a27578c7506c98ef71ccbd84a65c.zip
fix(file-cache): add queue to handle eviction of old files
This commit also removes the `await` from every stream creation. The eviction will be handled totally assyncronously. The only drawback is the possibility of exceeding the cache limit for a moment, until the next execution of `evictOldest`. This will only be a problem if the cache is set too close to the remaining disk space, which I wouldn't recomend. I also removed the recursion.
Diffstat (limited to 'src/scripts')
0 files changed, 0 insertions, 0 deletions