flokli / nix-casync

A more efficient way to store and substitute Nix store paths
80 stars 4 forks source link

Implement a LRU cache for local castr files #11

Open flokli opened 2 years ago

flokli commented 2 years ago

For local deployments of nix-casync that point to another nix-casync binary cache, we might not want to keep that many castr files around.

One strategy would be to do a LRU cache of castr files, and remove those that haven't been used recently.

flokli commented 2 years ago

cross-linking https://github.com/flokli/nix-casync/issues/10#issuecomment-991979821