Git Product home page Git Product logo

Comments (2)

memsharded avatar memsharded commented on August 19, 2024 1

I have a use case where each user having their own local cache is challenging due to disk space.

Having a copy of the dependencies local in disk is necessary to link with them. The "ground truth" storage is the server side such as Artifactory, and the client side, the cache is just a temporary storage that can be cleaned at any time and it will be re-populated from the server automatically. But dependencies must be in the disk (in the local cache) to be used in C/C++ builds, there is no way that dependencies can be used otherwise. So every machine, developer or CI machine must have a populated cache with the dependencies they need to build.
Disk space is very rarely an issue, unless you let the Conan caches to grow forever without cleaning them from time to time.

There are some very simple strategies that you can do:

  • Just clean the cache at every job or periodically.
  • Put the cache in a temporary storage location that is wiped everyday, for example when the computer is shutdown
  • Use the Conan 2 --lru (least recently used) feature to remove packages that haven't been used in a while to be even more efficient.

from conan.

memsharded avatar memsharded commented on August 19, 2024

Closing the question as responded, but don't hesitate to re-open or create new tickets for any further question, thanks!

from conan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.