aplbrain / aplbrain/bossphorus
Implement a cache cleanup and cache-maintenance strategy
- Lingua principale
- Rust
- Stelle
- 1
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Right now, if you create the following `DataManager` stack;
```
ChunkedBloscFileDataManager → BossDBRelayDataManager
```
...then as cache-misses in the `ChunkedBloscFileDataManager` are fulfilled by the `BossDBRelayDataManager`, they're saved to disk and returned to the client.
There currently exists no mechanism by which to clear the files from `ChunkedBloscFileDataManager`, which means that the cache will grow to infinity (or until your drive is full, whichever is sooner).
There should be a cache cleanup strategy, but I believe it makes sense for there to be several strategies which a user can choose between. Perhaps options like:
* LRU
* FIFO
* Most distant (Euclidean) from LRU (??)
Even if we just implement one of these to start with, might be smart to leave space and an abstraction layer to allow for multiple in the future.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.