-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
Summary of the new feature / enhancement
It could be useful with a local cache of downloaded .nupkg files, like other package managers does.
- Bun: https://bun.com/docs/pm/global-cache
- Chocolatey: https://docs.chocolatey.org/en-us/choco/commands/cache/
- Scoop: https://github.com/ScoopInstaller/Scoop/blob/master/libexec/scoop-cache.ps1
Having this would make it feasible to implement other fatures too, like:
Proposed technical implementation details (optional)
- Make it optional.
- Make cache invalidation / deletion / purge logic configurable.
- Keep to latest version of each script/module?
- Delete cached items after x days?
- Could help with cache in CI/CD too, like in GitHub actions, if
Install-Packagedid not delete the.nupkgfiles it downloaded. - Add some cmdlets to manage cache
- Get current cached items and total size.
- Clear cache.
Reactions are currently unavailable