Skip to content

Local cache for .nupkg like other package managers #1951

@o-l-a-v

Description

@o-l-a-v

Summary of the new feature / enhancement

It could be useful with a local cache of downloaded .nupkg files, like other package managers does.

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-Package did not delete the .nupkg files it downloaded.
  • Add some cmdlets to manage cache
    • Get current cached items and total size.
    • Clear cache.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions